Class: Prettyrb::Document::Softline

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, fallback: nil) ⇒ Softline

Returns a new instance of Softline.



158
159
160
161
# File 'lib/prettyrb/document.rb', line 158

def initialize(*args, fallback: nil)
  super(args)
  @fallback = fallback
end

Instance Attribute Details

#fallbackObject (readonly)

Returns the value of attribute fallback.



156
157
158
# File 'lib/prettyrb/document.rb', line 156

def fallback
  @fallback
end