Class: Prettyrb::Document::Hardline

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(count: 1, skip_indent: false) ⇒ Hardline

Returns a new instance of Hardline.



149
150
151
152
# File 'lib/prettyrb/document.rb', line 149

def initialize(count: 1, skip_indent: false)
  @count = count
  @skip_indent = skip_indent
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



148
149
150
# File 'lib/prettyrb/document.rb', line 148

def count
  @count
end

#skip_indentObject (readonly)

Returns the value of attribute skip_indent.



148
149
150
# File 'lib/prettyrb/document.rb', line 148

def skip_indent
  @skip_indent
end