Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/hash.rb
Instance Method Summary collapse
Instance Method Details
#attr_str ⇒ Object
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 |