Sha256: 17f2231487dcc308873bfb28fcf987cc760fd1f7fd6dfe3a7eb9068e8563176b

Contents?: true

Size: 481 Bytes

Versions: 8

Compression:

Stored size: 481 Bytes

Contents

require 'ns-options'

module SomeProxy
  include NsOptions::Proxy

  class SomeThing
    include NsOptions::Proxy

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

    opt :value1, String
    opt :value2, Symbol

    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

8 entries across 8 versions & 1 rubygems

Version Path
ns-options-1.1.6 test/support/proxy.rb
ns-options-1.1.5 test/support/proxy.rb
ns-options-1.1.4 test/support/proxy.rb
ns-options-1.1.3 test/support/proxy.rb
ns-options-1.1.2 test/support/proxy.rb
ns-options-1.1.1 test/support/proxy.rb
ns-options-1.1.0 test/support/proxy.rb
ns-options-1.0.1 test/support/proxy.rb