Class: LovelyRufus::Wrap
- Inherits:
-
Struct
- Object
- Struct
- LovelyRufus::Wrap
- Extended by:
- Forwardable
- Defined in:
- lib/lovely_rufus/wrap.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(text = '', width: 72) ⇒ Wrap
constructor
A new instance of Wrap.
Constructor Details
#initialize(text = '', width: 72) ⇒ Wrap
Returns a new instance of Wrap.
7 8 9 |
# File 'lib/lovely_rufus/wrap.rb', line 7 def initialize(text = '', width: 72) super text, width end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text
4 5 6 |
# File 'lib/lovely_rufus/wrap.rb', line 4 def text @text end |
#width ⇒ Object
Returns the value of attribute width
4 5 6 |
# File 'lib/lovely_rufus/wrap.rb', line 4 def width @width end |