Class: Alchemist::Commands::Element

Inherits:
Base show all
Defined in:
lib/alchemist-server/commands/element.rb

Instance Attribute Summary

Attributes inherited from Base

#avatar_name, #history

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(char, *name) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/alchemist-server/commands/element.rb', line 6

def run(char, *name)
  world = history.world.new_element char, name.join(' ')

  outcome nil,
          world,
          Commands::Basics
end