class Rung::State
Attributes
operation[R]
Public Class Methods
new(state, success, operation)
click to toggle source
# File lib/rung/state.rb, line 5 def initialize(state, success, operation) @success = success @operation = operation @state = state end
Public Instance Methods
fail?()
click to toggle source
# File lib/rung/state.rb, line 27 def fail? !success? end
method_missing(method, *args)
click to toggle source
Calls superclass method
# File lib/rung/state.rb, line 11 def method_missing(method, *args) return @state.send(method, *args) if @state.respond_to?(method) super end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/rung/state.rb, line 17 def respond_to_missing?(method_name, include_private = false) @state.respond_to?(method_name, include_private) || super end
success?()
click to toggle source
# File lib/rung/state.rb, line 23 def success? @success end
Also aliased as: successful?