class TheFox::Range::Lexer::BlockLevel

Public Class Methods

new() click to toggle source
# File lib/thefox-ext/range/lexer/block_level.rb, line 6
def initialize()
  # puts '-> BlockLevel.initialize()'
  @level = 0
end

Public Instance Methods

==(other) click to toggle source
# File lib/thefox-ext/range/lexer/block_level.rb, line 29
def ==(other)
  if other.is_a?(BlockLevel)
    @level == other.level
  end
end
dec() click to toggle source
# File lib/thefox-ext/range/lexer/block_level.rb, line 21
def dec()
  @level -= 1
end
inc() click to toggle source

:nocov:

# File lib/thefox-ext/range/lexer/block_level.rb, line 17
def inc()
  @level += 1
end
inspect() click to toggle source

:nocov:

# File lib/thefox-ext/range/lexer/block_level.rb, line 12
def inspect()
  'BlockLevel(%d)' % [@level]
end
level() click to toggle source
# File lib/thefox-ext/range/lexer/block_level.rb, line 25
def level()
  @level
end