Class: Tchae::MethodValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/tchae/core.rb

Constant Summary collapse

HANDLING_VTOR =
Tchae(Handling::ALL).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handling = ::Tchae::Handling::RAISE) ⇒ MethodValidator

Returns a new instance of MethodValidator.



313
314
315
316
317
318
# File 'lib/tchae/core.rb', line 313

def initialize(handling = ::Tchae::Handling::RAISE)
  HANDLING_VTOR.valid_or_raise_exception(handling, ArgumentValueError)
  @result = Result.new(self)
  @args = Arguments.new(self)
  @handling = handling
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



311
312
313
# File 'lib/tchae/core.rb', line 311

def args
  @args
end

#handlingObject

Returns the value of attribute handling.



312
313
314
# File 'lib/tchae/core.rb', line 312

def handling
  @handling
end

#resultObject (readonly)

Returns the value of attribute result.



310
311
312
# File 'lib/tchae/core.rb', line 310

def result
  @result
end