Class: FormatterState

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

Instance Method Summary collapse

Constructor Details

#initializeFormatterState

Returns a new instance of FormatterState.



2
3
4
# File 'lib/formatter_state.rb', line 2

def initialize
  @formatted_children = false
end

Instance Method Details

#children_are_formatted!Object



6
7
8
# File 'lib/formatter_state.rb', line 6

def children_are_formatted!
  @formatted_children = true
end

#formatted_children?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/formatter_state.rb', line 10

def formatted_children?
  @formatted_children
end