Class: Shoes::Text
Instance Attribute Summary (collapse)
-
- (Object) to_s
readonly
Returns the value of attribute to_s.
Instance Method Summary (collapse)
-
- (Text) initialize(str)
constructor
A new instance of Text.
Constructor Details
- (Text) initialize(str)
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
- (Object) to_s (readonly)
Returns the value of attribute to_s
46 47 48 |
# File 'lib/shoes/text.rb', line 46 def to_s @to_s end |