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

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Base

#and?, #complex_if?, #else?, #group?, #if?, #not?, #or?, #scalar?, #steps

Methods included from ConvenientService::Support::Copyable

#copy

Methods included from ConvenientService::Support::AbstractMethod

abstract_method

Methods included from ConvenientService::Support::Concern

included

Constructor Details

#initializevoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0



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

def initialize
end

Instance Method Details

#==(other) ⇒ Boolean?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)

Since:

  • 1.0.0



98
99
100
101
102
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 98

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

  true
end

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



68
69
70
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 68

def each_evaluated_step(&block)
  self
end

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



60
61
62
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 60

def each_step(&block)
  self
end

#empty?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 1.0.0



90
91
92
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 90

def empty?
  true
end

#error?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



52
53
54
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 52

def error?
  ::ConvenientService.raise Exceptions::EmptyExpressionHasNoStatus.new
end

#failure?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



45
46
47
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 45

def failure?
  ::ConvenientService.raise Exceptions::EmptyExpressionHasNoStatus.new
end

#inspectString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String)

Since:

  • 1.0.0



83
84
85
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 83

def inspect
  ""
end

#organizerObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def organizer
  ::ConvenientService.raise Exceptions::EmptyExpressionHasNoOrganizer.new
end

#resultObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def result
  ::ConvenientService.raise Exceptions::EmptyExpressionHasNoResult.new
end

#success?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def success?
  ::ConvenientService.raise Exceptions::EmptyExpressionHasNoStatus.new
end

#to_argumentsConvenientService::Support::Arguments

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

Since:

  • 1.0.0



107
108
109
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb', line 107

def to_arguments
  Support::Arguments.new
end

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def with_organizer(organizer)
  self
end