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