Sha256: 332431b13f3b63b6e3655d75bdbdccb561b34ed57a43cad07e8a9814161dc756

Contents?: true

Size: 258 Bytes

Versions: 8

Compression:

Stored size: 258 Bytes

Contents

module ArbitraryOptions
  def self.included(base)
    base.alias_method_chain :method_missing, :arbitrary_options
  end
  
  def method_missing_with_arbitrary_options(sym, *args, &block)
    self.class.dsl_accessor sym
    send(sym, *args, &block)
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
auser-sprinkle-0.1.5 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.0 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.1 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.2 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.4 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.5 lib/sprinkle/extensions/arbitrary_options.rb
sprinkle-0.1.4 lib/sprinkle/extensions/arbitrary_options.rb
sprinkle-0.1.5 lib/sprinkle/extensions/arbitrary_options.rb