Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/lasp/ext.rb

Instance Method Summary collapse

Instance Method Details

#call(index) ⇒ Object



24
25
26
# File 'lib/lasp/ext.rb', line 24

def call(index)
  self[index]
end

#inspectObject



20
21
22
# File 'lib/lasp/ext.rb', line 20

def inspect
  to_s
end

#to_sObject



16
17
18
# File 'lib/lasp/ext.rb', line 16

def to_s
  "{#{ map { |pair| pair.map(&:inspect).join(" ") }.join(", ") }}"
end