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