Class: CodeMiner::XStringExpression

Inherits:
Expression show all
Defined in:
lib/codeminer/expressions/xstring_expression.rb

Instance Attribute Summary

Attributes inherited from Expression

#args, #block, #delimiter, #src, #token

Instance Method Summary collapse

Methods inherited from Expression

not_implemented

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(token, src) ⇒ XStringExpression

Returns a new instance of XStringExpression.



5
6
7
8
# File 'lib/codeminer/expressions/xstring_expression.rb', line 5

def initialize(token, src)
  @token = token
  @src = src
end

Instance Method Details

#eachObject



18
19
20
# File 'lib/codeminer/expressions/xstring_expression.rb', line 18

def each
  @token.each
end

#typeObject



14
15
16
# File 'lib/codeminer/expressions/xstring_expression.rb', line 14

def type
  :xstring
end

#valueObject



10
11
12
# File 'lib/codeminer/expressions/xstring_expression.rb', line 10

def value
  @token.value
end