Class: Prettyrb::Document::Indent
- Defined in:
- lib/prettyrb/document.rb
Instance Attribute Summary collapse
-
#only_when_break ⇒ Object
readonly
Returns the value of attribute only_when_break.
Attributes inherited from Builder
Instance Method Summary collapse
-
#initialize(*args, only_when_break: false) ⇒ Indent
constructor
A new instance of Indent.
Methods inherited from Builder
#each, #groups, #has_group_part?, #inspect, #max_group_depth
Constructor Details
#initialize(*args, only_when_break: false) ⇒ Indent
Returns a new instance of Indent.
138 139 140 141 |
# File 'lib/prettyrb/document.rb', line 138 def initialize(*args, only_when_break: false) @only_when_break = only_when_break super(*args) end |
Instance Attribute Details
#only_when_break ⇒ Object (readonly)
Returns the value of attribute only_when_break.
136 137 138 |
# File 'lib/prettyrb/document.rb', line 136 def only_when_break @only_when_break end |