Class: Deadlyzer::ConstantLoader::Constant Private
- Inherits:
-
Object
- Object
- Deadlyzer::ConstantLoader::Constant
- 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.
Instance Attribute Summary collapse
- #file ⇒ Object readonly private
- #line ⇒ Object readonly private
- #name ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(file, line, name) ⇒ Constant
constructor
private
A new instance of Constant.
- #to_s ⇒ Object private
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.
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
#file ⇒ Object (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.
166 167 168 |
# File 'lib/deadlyzer/constant_loader.rb', line 166 def file @file end |
#line ⇒ Object (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.
167 168 169 |
# File 'lib/deadlyzer/constant_loader.rb', line 167 def line @line end |
#name ⇒ Object (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.
168 169 170 |
# File 'lib/deadlyzer/constant_loader.rb', line 168 def name @name end |
Instance Method Details
#to_s ⇒ Object
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.
175 176 177 |
# File 'lib/deadlyzer/constant_loader.rb', line 175 def to_s [file, line, rubyize(name)].join(':') end |