Class: Range

Inherits:
Object show all
Defined in:
lib/antlr4/base.rb

Instance Method Summary collapse

Instance Method Details

#aObject



16
17
18
# File 'lib/antlr4/base.rb', line 16

def a
  first
end

#bObject



19
20
21
# File 'lib/antlr4/base.rb', line 19

def b
  last
end

#lengthObject



13
14
15
# File 'lib/antlr4/base.rb', line 13

def length
    size
end

#startObject



10
11
12
# File 'lib/antlr4/base.rb', line 10

def start
  first
end

#stopObject



7
8
9
# File 'lib/antlr4/base.rb', line 7

def stop
  last
end