Method: Cuboid::State.load
- Defined in:
- lib/cuboid/state.rb
.load(directory) ⇒ State
Returns ‘self`.
60 61 62 63 64 65 66 |
# File 'lib/cuboid/state.rb', line 60 def load( directory ) each do |name, state| send( "#{name}=", state.class.load( "#{directory}/#{name}/" ) ) end self end |