Class: Fatty::OutputSession::VisibleLine
- Inherits:
-
Data
- Object
- Data
- Fatty::OutputSession::VisibleLine
- Defined in:
- lib/fatty/session/output_session.rb
Instance Attribute Summary collapse
-
#fragments ⇒ Object
readonly
Returns the value of attribute fragments.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(number:, text:, fragments: []) ⇒ VisibleLine
constructor
A new instance of VisibleLine.
- #to_s ⇒ Object
Constructor Details
#initialize(number:, text:, fragments: []) ⇒ VisibleLine
Returns a new instance of VisibleLine.
6 7 8 |
# File 'lib/fatty/session/output_session.rb', line 6 def initialize(number:, text:, fragments: []) super end |
Instance Attribute Details
#fragments ⇒ Object (readonly)
Returns the value of attribute fragments
5 6 7 |
# File 'lib/fatty/session/output_session.rb', line 5 def fragments @fragments end |
#number ⇒ Object (readonly)
Returns the value of attribute number
5 6 7 |
# File 'lib/fatty/session/output_session.rb', line 5 def number @number end |
#text ⇒ Object (readonly)
Returns the value of attribute text
5 6 7 |
# File 'lib/fatty/session/output_session.rb', line 5 def text @text end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/fatty/session/output_session.rb', line 10 def to_s text.to_s end |