Class: Prettyrb::Document::Hardline
- Defined in:
- lib/prettyrb/document.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
-
#skip_indent ⇒ Object
readonly
Returns the value of attribute skip_indent.
Attributes inherited from Builder
Instance Method Summary collapse
-
#initialize(count: 1, skip_indent: false) ⇒ Hardline
constructor
A new instance of Hardline.
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
#count ⇒ Object (readonly)
Returns the value of attribute count.
148 149 150 |
# File 'lib/prettyrb/document.rb', line 148 def count @count end |
#skip_indent ⇒ Object (readonly)
Returns the value of attribute skip_indent.
148 149 150 |
# File 'lib/prettyrb/document.rb', line 148 def skip_indent @skip_indent end |