Class: YARD::Tags::RSpecExampleTag

Inherits:
Tag
  • Object
show all
Defined in:
lib/yard-examples-from-rspec.rb

Overview

A new type of tags has to be used cause we need to intercept the text call and generate its contents (in generation time, after everything was parsed)

Instance Method Summary collapse

Instance Method Details

#textObject



73
74
75
# File 'lib/yard-examples-from-rspec.rb', line 73

def text
  @text =RSpecExampleRegistry.example_map[object.path]
end