19 lines
317 B
Ruby
19 lines
317 B
Ruby
|
module Mm2ep
|
||
|
module Depend
|
||
|
class EvalError
|
||
|
attr_accessor :var
|
||
|
attr_accessor :message
|
||
|
|
||
|
def initialize(hash)
|
||
|
# validate input
|
||
|
raise ArgumentError unless hash[:message]
|
||
|
|
||
|
# load input
|
||
|
@message = hash[:message]
|
||
|
@var = hash[:var]
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|