Module: CodedOptions
- Defined in:
- lib/coded_options/base.rb,
lib/rails/coded_options.rb,
lib/coded_options/version.rb
Defined Under Namespace
Classes: Railtie
Constant Summary collapse
- VERSION =
"0.2.7"
Instance Method Summary collapse
Instance Method Details
#coded_options(*args) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/coded_options/base.rb', line 3 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 |