Sha256: c4b0519f47fc27d879e2dc906cab5dcf0f01e9725ac31752240c5acc0f34b52a

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

require 'ns-options'

module SomeProxy
  include NsOptions::Proxy

  class SomeThing
    include NsOptions::Proxy

    def initialize(opts=nil)
      super(opts)
    end

    opt :value1
    opt :value2

    ns :more do
      opt :other1
      opt :other2
    end

  end

  class SomeOtherThing < SomeThing; end

  opt :some, SomeThing, :default => { :value1 => 1 }
  opt :some_prime, SomeThing, :default => { :value1 => 'one' }
  opt :stuff, :default => []

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ns-options-1.0.0 test/support/proxy.rb
ns-options-1.0.0.rc4 test/support/proxy.rb
ns-options-1.0.0.rc3 test/support/proxy.rb
ns-options-1.0.0.rc2 test/support/proxy.rb