Method: YARD::I18n::Message#add_location

Defined in:
lib/yard/i18n/message.rb

#add_location(path, line) ⇒ void

This method returns an undefined value.

Adds location information for the message.

Parameters:

  • path (String)

    the path where the message appears.

  • line (Integer)

    the line number where the message appears.

Since:

  • 0.8.1



35
36
37
# File 'lib/yard/i18n/message.rb', line 35

def add_location(path, line)
  @locations << [path, line]
end