Class: Pod::UnitExecutable::Indenter
- Inherits:
-
Array
- Object
- Array
- Pod::UnitExecutable::Indenter
- Defined in:
- lib/cocoapods-unit-test/executable.rb
Instance Attribute Summary collapse
-
#indent ⇒ Object
readonly
Returns the value of attribute indent.
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
- #<<(value) ⇒ Object
-
#initialize(io = nil) ⇒ Indenter
constructor
A new instance of Indenter.
Constructor Details
#initialize(io = nil) ⇒ Indenter
Returns a new instance of Indenter.
133 134 135 136 |
# File 'lib/cocoapods-unit-test/executable.rb', line 133 def initialize(io = nil) @io = io @indent = ' ' * UI.indentation_level end |
Instance Attribute Details
#indent ⇒ Object (readonly)
Returns the value of attribute indent.
130 131 132 |
# File 'lib/cocoapods-unit-test/executable.rb', line 130 def indent @indent end |
#io ⇒ Object (readonly)
Returns the value of attribute io.
131 132 133 |
# File 'lib/cocoapods-unit-test/executable.rb', line 131 def io @io end |
Instance Method Details
#<<(value) ⇒ Object
138 139 140 141 |
# File 'lib/cocoapods-unit-test/executable.rb', line 138 def <<(value) super io << "#{indent}#{value}" if io end |