Module: Jat::Config::ClassMethods

Included in:
Jat::Config
Defined in:
lib/jat/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#jat_classObject

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

#inspectObject

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