Class: CodeMiner::StringContentExpression
- Inherits:
-
Expression
- Object
- Expression
- CodeMiner::StringContentExpression
show all
- Defined in:
- lib/codeminer/expressions/string_content_expression.rb
Instance Attribute Summary
Attributes inherited from Expression
#args, #block, #delimiter, #src, #token
Instance Method Summary
collapse
Methods inherited from Expression
not_implemented
#adjust_src, #column, #column=, #end_column, #end_column=, #end_line, #end_line=, #line, #line=, #src, #src_extract
Instance Method Details
#add(string, src) ⇒ Object
5
6
7
8
9
10
11
12
13
|
# File 'lib/codeminer/expressions/string_content_expression.rb', line 5
def add(string, src)
if string.kind_of? StringEmbeddedExpression
DynamicStringExpression.new(string, src)
elsif string.kind_of? Token
StringExpression.new(string, src)
else
string
end
end
|
#each ⇒ Object
23
24
25
|
# File 'lib/codeminer/expressions/string_content_expression.rb', line 23
def each
[]
end
|
#type ⇒ Object
15
16
17
|
# File 'lib/codeminer/expressions/string_content_expression.rb', line 15
def type
:string
end
|
#value ⇒ Object
19
20
21
|
# File 'lib/codeminer/expressions/string_content_expression.rb', line 19
def value
''
end
|