module TomlRB::ArrayParser

Public Instance Methods

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