Class: YARD::Parser::C::Comment

Inherits:
Statement show all
Includes:
CommentParser
Defined in:
lib/yard/parser/c/statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CommentParser

#parse_comments

Constructor Details

#initialize(source, file = nil, line = nil) ⇒ Comment

Returns a new instance of Comment.



56
57
58
# File 'lib/yard/parser/c/statement.rb', line 56

def initialize(source, file = nil, line = nil)
  super(parse_comments(source), file, line)
end

Instance Attribute Details

#overridesObject

Returns the value of attribute overrides.



53
54
55
# File 'lib/yard/parser/c/statement.rb', line 53

def overrides
  @overrides
end

#statementObject

Returns the value of attribute statement.



54
55
56
# File 'lib/yard/parser/c/statement.rb', line 54

def statement
  @statement
end

#typeObject

Returns the value of attribute type.



52
53
54
# File 'lib/yard/parser/c/statement.rb', line 52

def type
  @type
end

Instance Method Details

#commentsObject



60
# File 'lib/yard/parser/c/statement.rb', line 60

def comments; self end