Class: FormatterState
- Inherits:
-
Object
- Object
- FormatterState
- Defined in:
- lib/formatter_state.rb
Instance Method Summary collapse
- #children_are_formatted! ⇒ Object
- #formatted_children? ⇒ Boolean
-
#initialize ⇒ FormatterState
constructor
A new instance of FormatterState.
Constructor Details
#initialize ⇒ FormatterState
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
10 11 12 |
# File 'lib/formatter_state.rb', line 10 def formatted_children? @formatted_children end |