Class: BoPeep::Console::SelectGraphicRendition::Renderer
- Inherits:
-
Object
- Object
- BoPeep::Console::SelectGraphicRendition::Renderer
- Defined in:
- lib/bopeep.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ Renderer
constructor
A new instance of Renderer.
- #to_s ⇒ Object
- #to_str ⇒ Object
- #with(**options) ⇒ Object
Constructor Details
#initialize(text) ⇒ Renderer
Returns a new instance of Renderer.
569 570 571 572 |
# File 'lib/bopeep.rb', line 569 def initialize(text) @text = text @select_graphic_rendition = SelectGraphicRendition.new end |
Instance Method Details
#to_s ⇒ Object
579 580 581 |
# File 'lib/bopeep.rb', line 579 def to_s @select_graphic_rendition.(@text) end |
#to_str ⇒ Object
583 584 585 |
# File 'lib/bopeep.rb', line 583 def to_str to_s end |
#with(**options) ⇒ Object
574 575 576 577 |
# File 'lib/bopeep.rb', line 574 def with(**) @select_graphic_rendition = @select_graphic_rendition.modify(**) self end |