Class: TracePreprocessor::Lexeme
- Inherits:
-
Object
- Object
- TracePreprocessor::Lexeme
- Defined in:
- lib/trace_preprocessor/lexeme.rb
Instance Attribute Summary collapse
-
#converter ⇒ Object
Returns the value of attribute converter.
-
#name ⇒ Object
Returns the value of attribute name.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#regexp ⇒ Object
Returns the value of attribute regexp.
-
#value_kind ⇒ Object
Returns the value of attribute value_kind.
Instance Method Summary collapse
-
#initialize(name, options) ⇒ Lexeme
constructor
A new instance of Lexeme.
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, @name = name @converter = {} @regexp = [:regexp] @priority = [:priority] @value_kind = [:value_kind] || :hash end |
Instance Attribute Details
#converter ⇒ Object
Returns the value of attribute converter.
12 13 14 |
# File 'lib/trace_preprocessor/lexeme.rb', line 12 def converter @converter end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/trace_preprocessor/lexeme.rb', line 12 def name @name end |
#priority ⇒ Object
Returns the value of attribute priority.
12 13 14 |
# File 'lib/trace_preprocessor/lexeme.rb', line 12 def priority @priority end |
#regexp ⇒ Object
Returns the value of attribute regexp.
12 13 14 |
# File 'lib/trace_preprocessor/lexeme.rb', line 12 def regexp @regexp end |
#value_kind ⇒ Object
Returns the value of attribute value_kind.
12 13 14 |
# File 'lib/trace_preprocessor/lexeme.rb', line 12 def value_kind @value_kind end |