Sha256: 8a7c3814088663b231bee9c9015729aa4f8aaaea24573298d1004a18acdd9d96

Contents?: true

Size: 267 Bytes

Versions: 66

Compression:

Stored size: 267 Bytes

Contents

module ArbitraryOptions #:nodoc:
  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

66 entries across 66 versions & 13 rubygems

Version Path
auser-sprinkle-0.1.6 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.6 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.7 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.8 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.1.9 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.2.0 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.2.1 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.2.2 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.2.3 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.2.4 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.2.5 lib/sprinkle/extensions/arbitrary_options.rb
crafterm-sprinkle-0.2.6 lib/sprinkle/extensions/arbitrary_options.rb
jemmyw-sprinkle-0.2.3 lib/sprinkle/extensions/arbitrary_options.rb
jemmyw-sprinkle-0.2.4 lib/sprinkle/extensions/arbitrary_options.rb
jsierles-sprinkle-0.1.9 lib/sprinkle/extensions/arbitrary_options.rb
justsee-sprinkle-0.2.4 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.1 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.10 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.11 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.13 lib/sprinkle/extensions/arbitrary_options.rb