Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/bivouac/tasks/bivouac.rb

Instance Method Summary collapse

Instance Method Details

#<<(h) ⇒ Object



5
6
7
# File 'lib/bivouac/tasks/bivouac.rb', line 5

def <<(h)
  h.each {|k,v| self[k]=v}
end

#to_sObject



9
10
11
# File 'lib/bivouac/tasks/bivouac.rb', line 9

def to_s
  "{"+self.map{|k,v|k.inspect+" => "+v.inspect}.join(', ')+"}"
end

#to_strObject



8
# File 'lib/bivouac/tasks/bivouac.rb', line 8

alias :to_str :to_s