class ChupaText::ConfigurationLoader::DecomposerLoader
Public Class Methods
new(configuration)
click to toggle source
# File lib/chupa-text/configuration-loader.rb, line 52 def initialize(configuration) @configuration = configuration end
Public Instance Methods
[](name)
click to toggle source
# File lib/chupa-text/configuration-loader.rb, line 64 def [](name) @configuration.options[name] end
[]=(name, options)
click to toggle source
# File lib/chupa-text/configuration-loader.rb, line 68 def []=(name, options) @configuration.options[name] = options end
method_missing(name, *arguments)
click to toggle source
Calls superclass method
# File lib/chupa-text/configuration-loader.rb, line 72 def method_missing(name, *arguments) return super if block_given? if name.to_s.end_with?("=") and arguments.size == 1 value = arguments.first self[name.to_s.gsub(/=\z/, "")] = value elsif arguments.empty? self[name.to_s] else super end end
names()
click to toggle source
# File lib/chupa-text/configuration-loader.rb, line 56 def names @configuration.names end
names=(names)
click to toggle source
# File lib/chupa-text/configuration-loader.rb, line 60 def names=(names) @configuration.names = names end