Class: SlowBlink::Definition

Inherits:
Object
  • Object
show all
Defined in:
lib/slow_blink/definition.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idInteger? (readonly)

Returns:

  • (Integer, nil)


37
38
39
# File 'lib/slow_blink/definition.rb', line 37

def id
  @id
end

#locationString (readonly)

Location string formatted as: [ FILENAME, ':' ], LINE_NUMBER, ':', COLUMN_NUMBER

Returns:

  • (String)


31
32
33
# File 'lib/slow_blink/definition.rb', line 31

def location
  @location
end

#nameString (readonly)

Returns:

  • (String)


34
35
36
# File 'lib/slow_blink/definition.rb', line 34

def name
  @name
end

#typeType (readonly)

Returns defined type.

Returns:

  • (Type)

    defined type



28
29
30
# File 'lib/slow_blink/definition.rb', line 28

def type
  @type
end

Class Method Details

.===(other) ⇒ Object



39
40
41
# File 'lib/slow_blink/definition.rb', line 39

def self.===(other)
    self == other                
end