class AdLint::Symbol

Attributes

referred[W]

Public Class Methods

new(id) click to toggle source
# File lib/adlint/symbol.rb, line 37
def initialize(id)
  @identifier = id
  @referred   = false
end

Public Instance Methods

location() click to toggle source
# File lib/adlint/symbol.rb, line 44
def location
  @identifier.location
end
to_s() click to toggle source
# File lib/adlint/symbol.rb, line 48
def to_s
  subclass_responsibility
end
useless?() click to toggle source
# File lib/adlint/symbol.rb, line 52
def useless?
  !@referred
end