Class: Alchemist::Commands::Create
- Defined in:
- lib/alchemist-server/commands/create.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #outcome, pattern, run
Constructor Details
This class inherits a constructor from Alchemist::Commands::Base
Instance Method Details
#run(resource) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/alchemist-server/commands/create.rb', line 6 def run(resource) world = history.world.create avatar_name, resource a = world.avatar avatar_name outcome "inventory #{a.try :inventory}", world end |