Class: SmashTheState::Operation::StateType

Inherits:
ActiveModel::Type::Value
  • Object
show all
Defined in:
lib/smash_the_state/operation/state_type.rb

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ StateType

Returns a new instance of StateType.



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

def initialize(block)
  @schema_class = Operation::State.build(&block)
end