Class: YARD::RiceParser

Inherits:
Parser::Ruby::RubyParser
  • Object
show all
Defined in:
lib/yard_rice.rb

Overview

Custom parser that extracts @!yard blocks from C style comments

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentsObject (readonly)

Returns the value of attribute contents.



10
11
12
# File 'lib/yard_rice.rb', line 10

def contents
  @contents
end