Class: ActiveRecord::DynamicMatchers::Method
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | activerecord/lib/active_record/dynamic_matchers.rb |
Class Attribute Summary
- .matchers readonly
Class Method Summary
Instance Attribute Summary
- #attribute_names readonly
- #model readonly
- #name readonly
- #valid? ⇒ Boolean readonly
Instance Method Summary
Constructor Details
.new(model, method_name) ⇒ Method
Class Attribute Details
.matchers (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 30
attr_reader :matchers
Class Method Details
.match(model, name)
[ GitHub ].pattern
[ GitHub ].prefix
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 41
def prefix raise NotImplementedError end
.suffix
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 45
def suffix "" end
Instance Attribute Details
#attribute_names (readonly)
[ GitHub ]#model (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 50
attr_reader :model, :name, :attribute_names
#name (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 50
attr_reader :model, :name, :attribute_names