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
lachlan-sprinkle-0.0.14 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.15 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.16 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.2 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.3 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.4 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.5 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.6 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.7 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.8 lib/sprinkle/extensions/arbitrary_options.rb
lachlan-sprinkle-0.0.9 lib/sprinkle/extensions/arbitrary_options.rb
mdwan-sprinkle-0.2.2 lib/sprinkle/extensions/arbitrary_options.rb
mdwan-sprinkle-0.2.3 lib/sprinkle/extensions/arbitrary_options.rb
mitchellh-sprinkle-0.1.5 lib/sprinkle/extensions/arbitrary_options.rb
mitchellh-sprinkle-0.1.6 lib/sprinkle/extensions/arbitrary_options.rb
trevorturk-sprinkle-0.2.2 lib/sprinkle/extensions/arbitrary_options.rb
trevorturk-sprinkle-0.2.6 lib/sprinkle/extensions/arbitrary_options.rb
sprinkle-0.5.2 lib/sprinkle/extensions/arbitrary_options.rb
sprinkle-0.5.1.1 lib/sprinkle/extensions/arbitrary_options.rb
sprinkle-0.5.1 lib/sprinkle/extensions/arbitrary_options.rb