module Kind::Action
Constants
- CALL_TMPL
Public Class Methods
included(base)
click to toggle source
# File lib/kind/action.rb, line 99 def self.included(base) Kind.of_class(base).extend(ClassMethods) base.send(:include, ACTION_STEPS) base.send(:include, StepAdapters) base.send(:include, ImmutableAttributes::Reader) end
Public Instance Methods
inspect()
click to toggle source
# File lib/kind/action.rb, line 109 def inspect '#<%s attributes=%p nil_attributes=%p>' % [self.class.name, attributes, nil_attributes] end
Private Instance Methods
Failure(arg1 = UNDEFINED, arg2 = UNDEFINED)
click to toggle source
# File lib/kind/action.rb, line 115 def Failure(arg1 = UNDEFINED, arg2 = UNDEFINED) arg1 = Empty::HASH if UNDEFINED == arg1 && UNDEFINED == arg2 Result::Failure[arg1, arg2, value_must_be_a: ::Hash] end
Success(arg1 = UNDEFINED, arg2 = UNDEFINED)
click to toggle source
# File lib/kind/action.rb, line 121 def Success(arg1 = UNDEFINED, arg2 = UNDEFINED) arg1 = Empty::HASH if UNDEFINED == arg1 && UNDEFINED == arg2 Result::Success[arg1, arg2, value_must_be_a: ::Hash] end