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, name) ⇒ Method
Class Attribute Details
.matchers (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 34
attr_reader :matchers
Class Method Details
.match(model, name)
[ GitHub ].pattern
[ GitHub ].prefix
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 45
def prefix raise NotImplementedError end
.suffix
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 49
def suffix '' end
Instance Attribute Details
#attribute_names (readonly)
[ GitHub ]#model (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 54
attr_reader :model, :name, :attribute_names
#name (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 54
attr_reader :model, :name, :attribute_names
#valid? ⇒ Boolean
(readonly)
[ GitHub ]
Instance Method Details
#body
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 75
def body raise NotImplementedError end