Class: Tchae::MethodValidator
Constant Summary collapse
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#handling ⇒ Object
Returns the value of attribute handling.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(handling = ::Tchae::Handling::RAISE) ⇒ MethodValidator
constructor
A new instance of MethodValidator.
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
#args ⇒ Object (readonly)
Returns the value of attribute args.
311 312 313 |
# File 'lib/tchae/core.rb', line 311 def args @args end |
#handling ⇒ Object
Returns the value of attribute handling.
312 313 314 |
# File 'lib/tchae/core.rb', line 312 def handling @handling end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
310 311 312 |
# File 'lib/tchae/core.rb', line 310 def result @result end |