Class: RSpec::Smart::Formatter
- Inherits:
-
Delegator
- Object
- Delegator
- RSpec::Smart::Formatter
- Defined in:
- lib/rspec/smart/formatter.rb
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #__setobj__(obj) ⇒ Object
-
#initialize(*args) ⇒ Formatter
constructor
A new instance of Formatter.
- #start(example_count) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Formatter
Returns a new instance of Formatter.
9 10 11 12 |
# File 'lib/rspec/smart/formatter.rb', line 9 def initialize(*args) @initialize_args = args @example_count = 0 end |
Instance Method Details
#__getobj__ ⇒ Object
19 20 21 |
# File 'lib/rspec/smart/formatter.rb', line 19 def __getobj__ @chosen_formatter ||= choose_formatter end |
#__setobj__(obj) ⇒ Object
23 24 25 |
# File 'lib/rspec/smart/formatter.rb', line 23 def __setobj__(obj) raise "Nothing to set here" end |
#start(example_count) ⇒ Object
14 15 16 17 |
# File 'lib/rspec/smart/formatter.rb', line 14 def start(example_count) @example_count = example_count super end |