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