Class: CPEE::EvalRuby::Translation::ParamArray
- Inherits:
-
Array
- Object
- Array
- CPEE::EvalRuby::Translation::ParamArray
- Defined in:
- lib/cpee-eval-ruby/translation.rb
Instance Method Summary collapse
Instance Method Details
#value(index) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/cpee-eval-ruby/translation.rb', line 27 def value(index) tmp = find_all{|e| e['name'] == index} case tmp.length when 0; nil when 1; tmp[0]['data'] else tmp end if tmp end |