Module: Jat::Attribute::ClassMethods

Included in:
Jat::Attribute
Defined in:
lib/jat/attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#jat_classObject

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

#inspectObject

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