Class: Namarara::Lexer

Inherits:
Rly::Lex
  • Object
show all
Defined in:
lib/namarara/lexer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger = nil) ⇒ Lexer

Returns a new instance of Lexer.



26
27
28
29
# File 'lib/namarara/lexer.rb', line 26

def initialize(logger = nil)
  @logger = logger
  super()
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



5
6
7
# File 'lib/namarara/lexer.rb', line 5

def logger
  @logger
end