Class: RBehave::Documenter::PlainTextDocumenter
- Inherits:
-
Object
- Object
- RBehave::Documenter::PlainTextDocumenter
show all
- Defined in:
- lib/rbehave/documenter/plain_text_documenter.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of PlainTextDocumenter.
4
5
6
|
# File 'lib/rbehave/documenter/plain_text_documenter.rb', line 4
def initialize(out)
@out = out
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
25
26
27
|
# File 'lib/rbehave/documenter/plain_text_documenter.rb', line 25
def method_missing(meth, *args, &block)
end
|
Instance Method Details
#found_step(name, description, *args) ⇒ Object
20
21
22
23
|
# File 'lib/rbehave/documenter/plain_text_documenter.rb', line 20
def found_step(name, description, *args)
args_txt = args.empty? ? "" : " #{args.join ','}"
@out << " #{name.to_s.capitalize} #{description}#{args_txt}\n"
end
|
#scenario_started(story_title, scenario_name) ⇒ Object
16
17
18
|
# File 'lib/rbehave/documenter/plain_text_documenter.rb', line 16
def scenario_started(story_title, scenario_name)
@out << "\nScenario: #{scenario_name}\n"
end
|
#story_ended(title, narrative) ⇒ Object
12
13
14
|
# File 'lib/rbehave/documenter/plain_text_documenter.rb', line 12
def story_ended(title, narrative)
@out << "\n\n"
end
|
#story_started(title, narrative) ⇒ Object
8
9
10
|
# File 'lib/rbehave/documenter/plain_text_documenter.rb', line 8
def story_started(title, narrative)
@out << "Story: #{title}\n#{narrative}\n"
end
|