Method: YARD::Parser::Ruby::Legacy::Statement#line

Defined in:
lib/yard/parser/ruby/legacy/statement.rb

#lineFixnum

Returns the first line of Ruby source.

Returns:

  • (Fixnum)

    the first line of Ruby source


43
44
45
# File 'lib/yard/parser/ruby/legacy/statement.rb', line 43

def line
  tokens.first.line_no
end