Class: LanguageTool::Error
- Inherits:
-
Struct
- Object
- Struct
- LanguageTool::Error
- Defined in:
- lib/language_tool/error.rb
Instance Method Summary collapse
-
#initialize(e) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(e) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 |
# File 'lib/language_tool/error.rb', line 7 def initialize(e) e.attributes.each do |k,attr| self.send("#{k}=", attr.value) end end |