Use the attached initializer to do stuff like this
str = "abc"
str.imbue(:foo => 'foo value', :bar => 'bar value')
puts str.foo # 'foo value'
puts str.bar # 'bar value'
Posted by Henning Koch to makandra dev (2010-08-31 17:38)
Use the attached initializer to do stuff like this
str = "abc"
str.imbue(:foo => 'foo value', :bar => 'bar value')
puts str.foo # 'foo value'
puts str.bar # 'bar value'