Class: SlowBlink::Type

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationString (readonly)

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

Returns:

  • (String)


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

def location
  @location
end

Class Method Details

.===(other) ⇒ Object



35
36
37
# File 'lib/slow_blink/type.rb', line 35

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

Instance Method Details

#sequence?true

Returns this type is sequence (repeating) type.

Returns:

  • (true)

    this type is sequence (repeating) type



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

def sequence?
    @sequence
end