Class: RSpec::Junklet::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/junklet/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Formatter

Returns a new instance of Formatter.



6
7
8
# File 'lib/rspec/junklet/formatter.rb', line 6

def initialize(input)
  @input = input
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



4
5
6
# File 'lib/rspec/junklet/formatter.rb', line 4

def input
  @input
end

Instance Method Details

#formatObject

You probably want to override this



11
12
13
# File 'lib/rspec/junklet/formatter.rb', line 11

def format
  input
end