Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#attr_strObject



2
3
4
5
6
7
8
# File 'lib/hash.rb', line 2

def attr_str
  res = ''
  self.each_pair { |attr, value|
    res += " #{attr} = '#{value}'"
  }
  res
end