Class: Prettyrb::Document::Group

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, joiner: "") ⇒ Group

Returns a new instance of Group.



108
109
110
111
# File 'lib/prettyrb/document.rb', line 108

def initialize(*args, joiner: "")
  super(*args)
  @joiner = joiner
end

Instance Attribute Details

#joinerObject (readonly)

Returns the value of attribute joiner.



106
107
108
# File 'lib/prettyrb/document.rb', line 106

def joiner
  @joiner
end