class RubyLint::MethodCallInfo
The MethodCallInfo
class stores basic information about method calls such as the definition of the method and location information of the method call.
@!attribute [r] definition
@return [RubyLint::Definition::RubyMethod]
@!attribute [r] line
@return [Numeric] The line of the method call.
@!attribute [r] column
@return [Numeric] The column of the method call.
@!attribute [r] file
@return [String] The file of the method call.
Attributes
column[R]
definition[R]
file[R]
line[R]
Public Class Methods
new(options = {})
click to toggle source
@param [Hash] options
# File lib/ruby-lint/method_call_info.rb, line 25 def initialize(options = {}) options.each do |key, value| instance_variable_set("@#{key}", value) if respond_to?(key) end end