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 16
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 26
def comments_range
  comments.line_range
end
first_line() click to toggle source
# File lib/yard/parser/c/statement.rb, line 30
def first_line
  source.split(/\n/).first
end
Also aliased as: signature
line_range() click to toggle source
# File lib/yard/parser/c/statement.rb, line 22
def line_range
  line...(line + source.count("\n"))
end
show() click to toggle source
# File lib/yard/parser/c/statement.rb, line 36
def show
  "\t#{line}: #{first_line}"
end
signature()
Alias for: first_line