Class: LanguageTool::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/language_tool/error.rb

Instance Method Summary collapse

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