Class: CodeMiner::RescueBodyExpression
- Inherits:
-
BodyExpression
- Object
- Expression
- BodyExpression
- CodeMiner::RescueBodyExpression
- Defined in:
- lib/codeminer/expressions/rescue_body_expression.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Expression
#args, #block, #delimiter, #src, #token
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(body, src) ⇒ RescueBodyExpression
constructor
A new instance of RescueBodyExpression.
- #type ⇒ Object
Methods inherited from BodyExpression
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(body, src) ⇒ RescueBodyExpression
Returns a new instance of RescueBodyExpression.
11 12 13 14 |
# File 'lib/codeminer/expressions/rescue_body_expression.rb', line 11 def initialize(body, src) @body = body @src = src end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/codeminer/expressions/rescue_body_expression.rb', line 5 def body @body end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/codeminer/expressions/rescue_body_expression.rb', line 5 def value @value end |
Class Method Details
.wrap(body) ⇒ Object
7 8 9 |
# File 'lib/codeminer/expressions/rescue_body_expression.rb', line 7 def self.wrap(body) new(body.body, body.src_extract) end |
Instance Method Details
#type ⇒ Object
16 17 18 |
# File 'lib/codeminer/expressions/rescue_body_expression.rb', line 16 def type :rescue_body end |