Module: CodedOptions::ClassMethods
- Defined in:
- lib/coded_options/base.rb
Instance Method Summary collapse
Instance Method Details
#coded_options(*args) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/coded_options/base.rb', line 14 def *args case args.length when 1 then args.first.each {|name, values| name, values } when 2 then *args else raise("Error in coded_options syntax, expecting name and values or a hash, got #{args.inspect}") end end |