Class: Pod::UnitExecutable::Indenter

Inherits:
Array
  • Object
show all
Defined in:
lib/cocoapods-unit-test/executable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indentObject (readonly)

Returns the value of attribute indent.



130
131
132
# File 'lib/cocoapods-unit-test/executable.rb', line 130

def indent
  @indent
end

#ioObject (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