Class: YARD::Parser::C::Comment
- Inherits:
-
Statement
- Object
- Statement
- YARD::Parser::C::Comment
- Includes:
- CommentParser
- Defined in:
- lib/yard/parser/c/statement.rb
Instance Attribute Summary (collapse)
-
- (Object) comments_hash_flag
inherited
from Statement
Returns the value of attribute comments_hash_flag.
-
- (Object) file
inherited
from Statement
Returns the value of attribute file.
-
- (Object) group
inherited
from Statement
deprecated
Deprecated.
Groups are now defined by directives
-
- (Object) line
inherited
from Statement
Returns the value of attribute line.
-
- (Object) overrides
Returns the value of attribute overrides.
-
- (Object) source
inherited
from Statement
Returns the value of attribute source.
-
- (Object) statement
Returns the value of attribute statement.
-
- (Object) type
Returns the value of attribute type.
Instance Method Summary (collapse)
- - (Object) comments
-
- (Comment) initialize(source, file = nil, line = nil)
constructor
A new instance of Comment.
Methods included from CommentParser
Constructor Details
- (Comment) initialize(source, file = nil, line = nil)
Returns a new instance of Comment
55 56 57 |
# File 'lib/yard/parser/c/statement.rb', line 55 def initialize(source, file = nil, line = nil) super(parse_comments(source), file, line) end |
Instance Attribute Details
- (Object) comments_hash_flag Originally defined in class Statement
Returns the value of attribute comments_hash_flag
- (Object) file Originally defined in class Statement
Returns the value of attribute file
- (Object) group Originally defined in class Statement
Deprecated.
Groups are now defined by directives
- (Object) line Originally defined in class Statement
Returns the value of attribute line
- (Object) overrides
Returns the value of attribute overrides
52 53 54 |
# File 'lib/yard/parser/c/statement.rb', line 52 def overrides @overrides end |
- (Object) source Originally defined in class Statement
Returns the value of attribute source
- (Object) statement
Returns the value of attribute statement
53 54 55 |
# File 'lib/yard/parser/c/statement.rb', line 53 def statement @statement end |
- (Object) type
Returns the value of attribute type
51 52 53 |
# File 'lib/yard/parser/c/statement.rb', line 51 def type @type end |
Instance Method Details
- (Object) comments
59 |
# File 'lib/yard/parser/c/statement.rb', line 59 def comments; self end |