Class: Prettyrb::Document::Indent

Inherits:
Builder
  • Object
show all
Defined in:
lib/prettyrb/document.rb

Instance Attribute Summary collapse

Attributes inherited from Builder

#parts

Instance Method Summary collapse

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_breakObject (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