Class: EDN::Type::List

Inherits:
Array
  • Object
show all
Defined in:
lib/edn/type/list.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(*values) ⇒ Object


4
5
6
# File 'lib/edn/type/list.rb', line 4

def self.new(*values)
  self.[](*values)
end

Instance Method Details

#to_ednObject


8
9
10
# File 'lib/edn/type/list.rb', line 8

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