Class: YARD::RiceParser
- Inherits:
-
Parser::Ruby::RubyParser
- Object
- Parser::Ruby::RubyParser
- YARD::RiceParser
- Defined in:
- lib/yard_rice.rb
Overview
Custom parser that extracts @!yard blocks from C style comments
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
Instance Method Summary collapse
-
#initialize(source, filename) ⇒ RiceParser
constructor
A new instance of RiceParser.
Constructor Details
#initialize(source, filename) ⇒ RiceParser
Returns a new instance of RiceParser.
12 13 14 |
# File 'lib/yard_rice.rb', line 12 def initialize(source, filename) super(extract_ruby_docs(source), filename) end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
10 11 12 |
# File 'lib/yard_rice.rb', line 10 def contents @contents end |