Exception: SmashTheState::Operation::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/smash_the_state/operation/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ Error

Returns a new instance of Error.



6
7
8
# File 'lib/smash_the_state/operation/error.rb', line 6

def initialize(state)
  @state = state
end

Instance Attribute Details

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'lib/smash_the_state/operation/error.rb', line 4

def state
  @state
end