Class: Shoes::Text

Inherits:
Object show all
Defined in:
lib/shoes/text.rb

Direct Known Subclasses

Link, LinkHover

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sObject (readonly)

Returns the value of attribute to_s.



46
47
48
# File 'lib/shoes/text.rb', line 46

def to_s
  @to_s
end