Class: Deadlyzer::ConstantLoader::Constant Private

Inherits:
Object
  • Object
show all
Defined in:
lib/deadlyzer/constant_loader.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, line, name) ⇒ Constant

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Constant.

Since:

  • 0.1.0



169
170
171
172
173
# File 'lib/deadlyzer/constant_loader.rb', line 169

def initialize(file, line, name)
  @file = file
  @line = line
  @name = name
end

Instance Attribute Details

#fileObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



166
167
168
# File 'lib/deadlyzer/constant_loader.rb', line 166

def file
  @file
end

#lineObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



167
168
169
# File 'lib/deadlyzer/constant_loader.rb', line 167

def line
  @line
end

#nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



168
169
170
# File 'lib/deadlyzer/constant_loader.rb', line 168

def name
  @name
end

Instance Method Details

#to_sObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



175
176
177
# File 'lib/deadlyzer/constant_loader.rb', line 175

def to_s
  [file, line, rubyize(name)].join(':')
end