Class: Shoes::Text
Instance Attribute Summary collapse
-
#to_s ⇒ Object
readonly
Returns the value of attribute to_s.
Instance Method Summary collapse
-
#initialize(str) ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize(str) ⇒ Text
Returns a new instance of Text.
43 44 45 |
# File 'lib/shoes/text.rb', line 43 def initialize str @to_s = str end |
Instance Attribute Details
#to_s ⇒ Object (readonly)
Returns the value of attribute to_s.
46 47 48 |
# File 'lib/shoes/text.rb', line 46 def to_s @to_s end |