Class: Prettyrb::Document::IfBreak
- Inherits:
-
Object
- Object
- Prettyrb::Document::IfBreak
- Defined in:
- lib/prettyrb/document.rb
Instance Attribute Summary collapse
-
#with_break ⇒ Object
readonly
Returns the value of attribute with_break.
-
#without_break ⇒ Object
readonly
Returns the value of attribute without_break.
Instance Method Summary collapse
-
#initialize(without_break:, with_break:) ⇒ IfBreak
constructor
A new instance of IfBreak.
Constructor Details
#initialize(without_break:, with_break:) ⇒ IfBreak
Returns a new instance of IfBreak.
129 130 131 132 |
# File 'lib/prettyrb/document.rb', line 129 def initialize(without_break:, with_break: ) @without_break = without_break @with_break = with_break end |
Instance Attribute Details
#with_break ⇒ Object (readonly)
Returns the value of attribute with_break.
128 129 130 |
# File 'lib/prettyrb/document.rb', line 128 def with_break @with_break end |
#without_break ⇒ Object (readonly)
Returns the value of attribute without_break.
128 129 130 |
# File 'lib/prettyrb/document.rb', line 128 def without_break @without_break end |