Module: Jat::Config::ClassMethods
- Included in:
- Jat::Config
- Defined in:
- lib/jat/config.rb
Instance Attribute Summary collapse
-
#jat_class ⇒ Object
Returns the Jat class that this config class is namespaced under.
Instance Method Summary collapse
-
#inspect ⇒ Object
Since Config 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 config class is namespaced under.
22 23 24 |
# File 'lib/jat/config.rb', line 22 def jat_class @jat_class end |
Instance Method Details
#inspect ⇒ Object
Since Config 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.
27 28 29 |
# File 'lib/jat/config.rb', line 27 def inspect "#{jat_class.inspect}::Config" end |