Module: TomlRB::ArrayParser
- Defined in:
- lib/toml-rb/array.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/toml-rb/array.rb', line 3 def value elements = captures[:elements].first return [] unless elements if elements.captures.key? :string elements.captures[:string].map(&:value) else eval(to_str) end end |