Class: MarkdownToRspec::ToRspec::Formatter::Heading

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown_to_rspec/to_rspec/formatter/heading.rb

Instance Method Summary collapse

Instance Method Details

#call(rdoc_heading, parent) ⇒ Object



7
8
9
10
11
# File 'lib/markdown_to_rspec/to_rspec/formatter/heading.rb', line 7

def call(rdoc_heading, parent)
  rspec_heading = build_rspec_rspec_heading(rdoc_heading, parent)
  parent.children << rspec_heading if parent
  rspec_heading
end