Module: ArbitraryOptions
- Included in:
- Sprinkle::Package::Package
- Defined in:
- lib/sprinkle/extensions/arbitrary_options.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 |
# File 'lib/sprinkle/extensions/arbitrary_options.rb', line 2 def self.included(base) base.alias_method_chain :method_missing, :arbitrary_options end |
Instance Method Details
#method_missing_with_arbitrary_options(sym, *args, &block) ⇒ Object
6 7 8 9 |
# File 'lib/sprinkle/extensions/arbitrary_options.rb', line 6 def (sym, *args, &block) self.class.dsl_accessor sym send(sym, *args, &block) end |