Class: TracePreprocessor::Lexeme

Inherits:
Object
  • Object
show all
Defined in:
lib/trace_preprocessor/lexeme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ Lexeme

Returns a new instance of Lexeme.



3
4
5
6
7
8
9
10
# File 'lib/trace_preprocessor/lexeme.rb', line 3

def initialize name, options
  @name = name
  @converter = {}      
  
  @regexp     = options[:regexp]
  @priority   = options[:priority]
  @value_kind = options[:value_kind] || :hash
end

Instance Attribute Details

#converterObject

Returns the value of attribute converter.



12
13
14
# File 'lib/trace_preprocessor/lexeme.rb', line 12

def converter
  @converter
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/trace_preprocessor/lexeme.rb', line 12

def name
  @name
end

#priorityObject

Returns the value of attribute priority.



12
13
14
# File 'lib/trace_preprocessor/lexeme.rb', line 12

def priority
  @priority
end

#regexpObject

Returns the value of attribute regexp.



12
13
14
# File 'lib/trace_preprocessor/lexeme.rb', line 12

def regexp
  @regexp
end

#value_kindObject

Returns the value of attribute value_kind.



12
13
14
# File 'lib/trace_preprocessor/lexeme.rb', line 12

def value_kind
  @value_kind
end