class YARD::Parser::C::Statement
Attributes
comments_hash_flag[RW]
file[RW]
group[RW]
@deprecated Groups are now defined by directives @see Tags::GroupDirective
line[RW]
source[RW]
Public Class Methods
new(source, file = nil, line = nil)
click to toggle source
# File lib/yard/parser/c/statement.rb, line 15 def initialize(source, file = nil, line = nil) @source = source @file = file @line = line end
Public Instance Methods
comments_range()
click to toggle source
# File lib/yard/parser/c/statement.rb, line 25 def comments_range comments.line_range end
first_line()
click to toggle source
# File lib/yard/parser/c/statement.rb, line 29 def first_line source.split(/\n/).first end
line_range()
click to toggle source
# File lib/yard/parser/c/statement.rb, line 21 def line_range line...(line + source.count("\n")) end
show()
click to toggle source
# File lib/yard/parser/c/statement.rb, line 33 def show "\t#{line}: #{first_line}" end