Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#call(index) ⇒ Object



31
32
33
# File 'lib/lasp/ext.rb', line 31

def call(index)
  self[index]
end

#inspectObject



27
28
29
# File 'lib/lasp/ext.rb', line 27

def inspect
  to_s
end

#to_sObject



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

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