Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service::Concern::InstanceMethods
- Includes:
- ConvenientService::Support::Delegate
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
- #==(other) ⇒ Boolean?
- #has_defined_method?(method) ⇒ Boolean
- #initialize(klass) ⇒ Object
- #mutex ⇒ Mutex
- #result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
- #step_class ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step
Methods included from ConvenientService::Support::Delegate::ClassMethodsForForwardable
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
27 28 29 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 27 def klass @klass end |
Instance Method Details
#==(other) ⇒ Boolean?
55 56 57 58 59 60 61 62 63 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 55 def ==(other) casted = cast(other) return unless casted return false if klass != casted.klass true end |
#has_defined_method?(method) ⇒ Boolean
47 48 49 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 47 def has_defined_method?(method) Utils::Method.defined?(method, klass, private: true) end |
#initialize(klass) ⇒ Object
32 33 34 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 32 def initialize(klass) @klass = klass end |
#mutex ⇒ Mutex
39 40 41 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 39 def mutex klass.__convenient_service_config__.mutex end |
#result ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
16 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 16 delegate :result, to: :klass |
#step_class ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step
21 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 21 delegate :step_class, to: :klass |