Class: Hash
- Inherits:
-
Object
- Object
- Hash
- 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_s ⇒ Object
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_str ⇒ Object
8 |
# File 'lib/bivouac/tasks/bivouac.rb', line 8 alias :to_str :to_s |