Exception: Unravel::Session::FixableError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/unravel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infoObject (readonly)

Returns the value of attribute extracted_info.



111
112
113
# File 'lib/unravel.rb', line 111

def extracted_info
  @extracted_info
end

#symptomObject (readonly)

Returns the value of attribute symptom.



110
111
112
# File 'lib/unravel.rb', line 110

def symptom
  @symptom
end