Class: CodeMiner::RescueExpression
- Inherits:
-
Expression
- Object
- Expression
- CodeMiner::RescueExpression
- Defined in:
- lib/codeminer/expressions/rescue_expression.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#constants ⇒ Object
readonly
Returns the value of attribute constants.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#variable ⇒ Object
readonly
Returns the value of attribute variable.
Attributes inherited from Expression
#args, #block, #delimiter, #src, #token
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(constants, variable, body, d, src) ⇒ RescueExpression
constructor
A new instance of RescueExpression.
- #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, #src_extract
Constructor Details
#initialize(constants, variable, body, d, src) ⇒ RescueExpression
Returns a new instance of RescueExpression.
7 8 9 10 11 12 13 |
# File 'lib/codeminer/expressions/rescue_expression.rb', line 7 def initialize(constants, variable, body, d, src) @constants = constants @variable = variable @body = body @d = d @src = src end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/codeminer/expressions/rescue_expression.rb', line 5 def body @body end |
#constants ⇒ Object (readonly)
Returns the value of attribute constants.
5 6 7 |
# File 'lib/codeminer/expressions/rescue_expression.rb', line 5 def constants @constants end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/codeminer/expressions/rescue_expression.rb', line 5 def value @value end |
#variable ⇒ Object (readonly)
Returns the value of attribute variable.
5 6 7 |
# File 'lib/codeminer/expressions/rescue_expression.rb', line 5 def variable @variable end |
Instance Method Details
#each ⇒ Object
19 20 21 |
# File 'lib/codeminer/expressions/rescue_expression.rb', line 19 def each [constants, variable, *body.each] end |
#type ⇒ Object
15 16 17 |
# File 'lib/codeminer/expressions/rescue_expression.rb', line 15 def type :rescue end |