Class: LegacyRSpecDescribeHandler
- Inherits:
-
YARD::Handlers::Ruby::Legacy::Base
- Object
- YARD::Handlers::Ruby::Legacy::Base
- LegacyRSpecDescribeHandler
- Defined in:
- lib/yard-rspec/legacy.rb
Constant Summary collapse
- MATCH =
/\Adescribe\s+(.+?)\s+(do|\{)/
Instance Method Summary collapse
-
#process ⇒ Object
I’m not using this logic anymore but if I remove it, nothing works Oo.
Instance Method Details
#process ⇒ Object
I’m not using this logic anymore but if I remove it, nothing works Oo
6 7 8 9 10 11 12 |
# File 'lib/yard-rspec/legacy.rb', line 6 def process objname = statement.tokens.to_s[MATCH, 1].gsub(/["']/, '') obj = {:spec => owner ? (owner[:spec] || "") : ""} obj[:spec] += objname parse_block :owner => obj rescue YARD::Handlers::NamespaceMissingError end |