Module: EDN::CoreExt::Array

Defined in:
lib/edn/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#to_ednObject


59
60
61
# File 'lib/edn/core_ext.rb', line 59

def to_edn
  '[' + self.map(&:to_edn).join(" ") + ']'
end

#[email protected]Object


55
56
57
# File 'lib/edn/core_ext.rb', line 55

def [email protected]
  EDN::Type::List.new(*self)
end