class Riddl::Parameter::Array

Public Instance Methods

value(index) click to toggle source
# 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