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

Instance Method Summary collapse

Methods included from ConvenientService::Support::Concern

included

Instance Attribute Details

#klassObject (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?



48
49
50
51
52
53
54
55
56
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 48

def ==(other)
  casted = cast(other)

  return unless casted

  return false if klass != casted.klass

  true
end

#has_defined_method?(method) ⇒ Boolean



40
41
42
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb', line 40

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

#resultConvenientService::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_classConvenientService::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