Class: Riddl::Parameter::Array
- Inherits:
-
Array
- Object
- Array
- Riddl::Parameter::Array
- Defined in:
- lib/ruby/riddl/parameter.rb
Instance Method Summary collapse
Instance Method Details
#value(index) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/ruby/riddl/parameter.rb', line 6 def value(index) tmp = find_all{|e| e.name == index} case tmp.length when 0; nil when 1; tmp[0].value else tmp end if tmp end |