Class: PrettierPrint::IfFlatIgnore
- Inherits:
-
Object
- Object
- PrettierPrint::IfFlatIgnore
- Defined in:
- lib/prettier_print.rb
Overview
When we already know that groups are broken, we don’t actually need to track the flat versions of the contents. So this builder version is effectively a no-op, but we need it to maintain the same API. The only thing this can impact is that if there’s a forced break in the flat contents, then we need to propagate that break up the whole tree.
Instance Attribute Summary collapse
-
#q ⇒ Object
readonly
Returns the value of attribute q.
Instance Method Summary collapse
- #if_flat ⇒ Object
-
#initialize(q) ⇒ IfFlatIgnore
constructor
A new instance of IfFlatIgnore.
Constructor Details
#initialize(q) ⇒ IfFlatIgnore
Returns a new instance of IfFlatIgnore.
895 896 897 |
# File 'lib/prettier_print.rb', line 895 def initialize(q) @q = q end |
Instance Attribute Details
#q ⇒ Object (readonly)
Returns the value of attribute q.
893 894 895 |
# File 'lib/prettier_print.rb', line 893 def q @q end |