Module: Jat::Attribute::ClassMethods
- Included in:
- Jat::Attribute
- Defined in:
- lib/jat/attribute.rb
Instance Attribute Summary collapse
-
#jat_class ⇒ Object
Returns the Jat class that this Attribute class is namespaced under.
Instance Method Summary collapse
-
#inspect ⇒ Object
Since Attribute is anonymously subclassed when Jat is subclassed, and then assigned to a constant of the Jat subclass, make inspect reflect the likely name for the class.
Instance Attribute Details
#jat_class ⇒ Object
Returns the Jat class that this Attribute class is namespaced under.
93 94 95 |
# File 'lib/jat/attribute.rb', line 93 def jat_class @jat_class end |
Instance Method Details
#inspect ⇒ Object
Since Attribute is anonymously subclassed when Jat is subclassed, and then assigned to a constant of the Jat subclass, make inspect reflect the likely name for the class.
98 99 100 |
# File 'lib/jat/attribute.rb', line 98 def inspect "#{jat_class.inspect}::Attribute" end |