Module: Saruman::BuilderInstanceBase
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
246
247
248
249
250
251
252
|
# File 'lib/saruman.rb', line 246
def method_missing(meth, *args, &block)
if(@options.has_key?(meth.to_sym))
@options[meth.to_sym]
else
super
end
end
|
Instance Method Details
#initialize(options) ⇒ Object
242
243
244
|
# File 'lib/saruman.rb', line 242
def initialize(options)
@options = options
end
|