Class: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Empty

Inherits:
Base
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb

Instance Method Summary collapse

Methods inherited from Base

#and?, #group?, #not?, #or?, #scalar?, #steps

Methods included from ConvenientService::Support::Copyable

#copy

Methods included from ConvenientService::Support::Concern

included

Constructor Details

#initializevoid



13
14
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 13

def initialize
end

Instance Method Details

#==(other) ⇒ Boolean

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean)


86
87
88
89
90
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 86

def ==(other)
  return unless other.instance_of?(self.class)

  true
end

#each_evaluated_step(&block) ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Base



56
57
58
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 56

def each_evaluated_step(&block)
  self
end

#each_step(&block) ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Base



48
49
50
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 48

def each_step(&block)
  self
end

#empty?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 78

def empty?
  true
end

#error?Boolean



40
41
42
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 40

def error?
  raise Exceptions::EmptyExpressionHasNoStatus.new
end

#failure?Boolean



33
34
35
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 33

def failure?
  raise Exceptions::EmptyExpressionHasNoStatus.new
end

#inspectString

Returns:

  • (String)


71
72
73
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 71

def inspect
  ""
end

#resultObject



19
20
21
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 19

def result
  raise Exceptions::EmptyExpressionHasNoResult.new
end

#success?Boolean



26
27
28
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 26

def success?
  raise Exceptions::EmptyExpressionHasNoStatus.new
end

#to_argumentsConvenientService::Support::Arguments



95
96
97
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 95

def to_arguments
  Support::Arguments.new
end

#with_organizer(organizer) ⇒ ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Empty



64
65
66
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 64

def with_organizer(organizer)
  self
end