Class: CodeMiner::Token
- Inherits:
-
Expression
- Object
- Expression
- CodeMiner::Token
- Defined in:
- lib/codeminer/token.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Expression
#args, #block, #delimiter, #src, #token
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(type, value, src) ⇒ Token
constructor
A new instance of Token.
Methods inherited from Expression
Methods included from SourceExtract::Usage
#adjust_src, #column, #column=, #end_column, #end_column=, #end_line, #end_line=, #line, #line=, #src, #src_extract
Constructor Details
#initialize(type, value, src) ⇒ Token
Returns a new instance of Token.
7 8 9 10 11 |
# File 'lib/codeminer/token.rb', line 7 def initialize(type, value, src) @type = type @value = value @src = src end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/codeminer/token.rb', line 5 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/codeminer/token.rb', line 5 def value @value end |
Instance Method Details
#each ⇒ Object
13 14 15 |
# File 'lib/codeminer/token.rb', line 13 def each [] end |