Exception: Definition::Initializer::InvalidArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/definition/initializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(conform_result) ⇒ InvalidArgumentError

Returns a new instance of InvalidArgumentError.



8
9
10
11
# File 'lib/definition/initializer.rb', line 8

def initialize(conform_result)
  super("Arguments passed into the initializer are invalid: #{conform_result.error_message}")
  self.conform_result = conform_result
end

Instance Attribute Details

#conform_resultObject

Returns the value of attribute conform_result.



6
7
8
# File 'lib/definition/initializer.rb', line 6

def conform_result
  @conform_result
end