Class: Shoes::Text
- Inherits:
-
Object
- Object
- Shoes::Text
- Includes:
- Common::Inspect, Common::LinkFinder
- Defined in:
- shoes-core/lib/shoes/text.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#text_block ⇒ Object
Returns the value of attribute text_block.
-
#texts ⇒ Object
readonly
Returns the value of attribute texts.
-
#to_s ⇒ Object
readonly
Returns the value of attribute to_s.
Instance Method Summary collapse
- #app ⇒ Object
-
#initialize(texts, color = nil) ⇒ Text
constructor
A new instance of Text.
- #links ⇒ Object
Methods included from Common::LinkFinder
Methods included from Common::Inspect
Constructor Details
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
8 9 10 |
# File 'shoes-core/lib/shoes/text.rb', line 8 def color @color end |
#parent ⇒ Object
Returns the value of attribute parent.
9 10 11 |
# File 'shoes-core/lib/shoes/text.rb', line 9 def parent @parent end |
#text_block ⇒ Object
Returns the value of attribute text_block.
9 10 11 |
# File 'shoes-core/lib/shoes/text.rb', line 9 def text_block @text_block end |
#texts ⇒ Object (readonly)
Returns the value of attribute texts.
8 9 10 |
# File 'shoes-core/lib/shoes/text.rb', line 8 def texts @texts end |
#to_s ⇒ Object (readonly)
Returns the value of attribute to_s.
8 9 10 |
# File 'shoes-core/lib/shoes/text.rb', line 8 def to_s @to_s end |
Instance Method Details
#app ⇒ Object
19 20 21 |
# File 'shoes-core/lib/shoes/text.rb', line 19 def app parent&.app end |
#links ⇒ Object
23 24 25 |
# File 'shoes-core/lib/shoes/text.rb', line 23 def links find_links(@texts) end |