Class: Prettyrb::Document::IfBreak

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(without_break:, with_break:) ⇒ IfBreak

Returns a new instance of IfBreak.



129
130
131
132
# File 'lib/prettyrb/document.rb', line 129

def initialize(without_break:, with_break: )
  @without_break = without_break
  @with_break = with_break
end

Instance Attribute Details

#with_breakObject (readonly)

Returns the value of attribute with_break.



128
129
130
# File 'lib/prettyrb/document.rb', line 128

def with_break
  @with_break
end

#without_breakObject (readonly)

Returns the value of attribute without_break.



128
129
130
# File 'lib/prettyrb/document.rb', line 128

def without_break
  @without_break
end