Class: Alchemist::Commands::Describe
- Defined in:
- lib/alchemist-server/commands/describe.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(symbol) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/alchemist-server/commands/describe.rb', line 6 def run(symbol) element = history.world.element symbol if element outcome "element #{element.symbol} #{element.name} #{element.hex_code}" else outcome "noelement #{symbol}" end end |