Class: ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar
- Inherits:
-
Base
- Object
- Base
- ConvenientService::Service::Plugins::CanHaveConnectedSteps::Entities::Expressions::Scalar
show all
- Defined in:
- lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#and?, #empty?, #group?, #not?, #or?, #steps
#copy
included
Constructor Details
#initialize(step) ⇒ void
20
21
22
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 20
def initialize(step)
@step = step
end
|
Instance Attribute Details
#step ⇒ Object
Returns the value of attribute step.
14
15
16
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 14
def step
@step
end
|
Instance Method Details
#==(other) ⇒ Boolean
113
114
115
116
117
118
119
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 113
def ==(other)
return unless other.instance_of?(self.class)
return false if step != other.step
true
end
|
79
80
81
82
83
84
85
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 79
def each_evaluated_step(&block)
result
yield(step)
self
end
|
65
66
67
68
69
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 65
def each_step(&block)
yield(step)
self
end
|
#error? ⇒ Boolean
57
58
59
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 57
def error?
result.status.unsafe_error?
end
|
#failure? ⇒ Boolean
47
48
49
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 47
def failure?
result.status.unsafe_failure?
end
|
#inspect ⇒ String
98
99
100
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 98
def inspect
"steps[#{step.index}]"
end
|
27
28
29
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 27
def result
step.result
end
|
#scalar? ⇒ Boolean
105
106
107
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 105
def scalar?
true
end
|
#success? ⇒ Boolean
37
38
39
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 37
def success?
result.status.unsafe_success?
end
|
124
125
126
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 124
def to_arguments
Support::Arguments.new(step)
end
|
91
92
93
|
# File 'lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb', line 91
def with_organizer(organizer)
copy(overrides: {args: {0 => step.with_organizer(organizer)}})
end
|