Exception: Unravel::Session::FixableError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Unravel::Session::FixableError
- Defined in:
- lib/unravel.rb
Instance Attribute Summary collapse
-
#extracted_info ⇒ Object
readonly
Returns the value of attribute extracted_info.
-
#symptom ⇒ Object
readonly
Returns the value of attribute symptom.
Instance Method Summary collapse
-
#initialize(symptom_name, extracted_info) ⇒ FixableError
constructor
A new instance of FixableError.
Constructor Details
#initialize(symptom_name, extracted_info) ⇒ FixableError
Returns a new instance of FixableError.
112 113 114 115 116 117 118 |
# File 'lib/unravel.rb', line 112 def initialize(symptom_name, extracted_info) @symptom = symptom_name # TODO: clean this up matchdata = extracted_info @extracted_info = matchdata.captures.empty? ? [] : [matchdata] end |
Instance Attribute Details
#extracted_info ⇒ Object (readonly)
Returns the value of attribute extracted_info.
111 112 113 |
# File 'lib/unravel.rb', line 111 def extracted_info @extracted_info end |
#symptom ⇒ Object (readonly)
Returns the value of attribute symptom.
110 111 112 |
# File 'lib/unravel.rb', line 110 def symptom @symptom end |