Class: Shoes::Text
- Inherits:
-
Object
- Object
- Shoes::Text
- Defined in:
- lib/blue_shoes/text.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Text
constructor
A new instance of Text.
- #strong? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(text) ⇒ Text
Returns a new instance of Text.
8 9 10 |
# File 'lib/blue_shoes/text.rb', line 8 def initialize(text) self.text = text.to_s end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/blue_shoes/text.rb', line 4 def text @text end |
Instance Method Details
#strong? ⇒ Boolean
6 |
# File 'lib/blue_shoes/text.rb', line 6 def strong?; false; end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/blue_shoes/text.rb', line 12 def to_s text end |