Class: Tui::SegmentWriter::FillSegment
- Inherits:
-
Object
- Object
- Tui::SegmentWriter::FillSegment
- Defined in:
- lib/tui.rb
Instance Attribute Summary collapse
-
#char ⇒ Object
readonly
Returns the value of attribute char.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
Instance Method Summary collapse
-
#initialize(char, style: nil) ⇒ FillSegment
constructor
A new instance of FillSegment.
- #with_style(style) ⇒ Object
Constructor Details
#initialize(char, style: nil) ⇒ FillSegment
Returns a new instance of FillSegment.
694 695 696 697 |
# File 'lib/tui.rb', line 694 def initialize(char, style: nil) @char = char.to_s @style = style end |
Instance Attribute Details
#char ⇒ Object (readonly)
Returns the value of attribute char.
692 693 694 |
# File 'lib/tui.rb', line 692 def char @char end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
692 693 694 |
# File 'lib/tui.rb', line 692 def style @style end |
Instance Method Details
#with_style(style) ⇒ Object
699 700 701 |
# File 'lib/tui.rb', line 699 def with_style(style) self.class.new(char, style: style) end |