Module: Amygdala
- Defined in:
- lib/amygdala.rb,
lib/amygdala/server.rb,
lib/amygdala/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
- .configs ⇒ Object
- .move(data) ⇒ Object
- .set_configs(configs) ⇒ Object
- .set_move_handler(handler) ⇒ Object
Class Method Details
.configs ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/amygdala.rb', line 8 def configs { "apiversion" => "1", "author" => "amygdala", "color" => "0x000000", "head" => "default", "tail" => "default", "version" => "0.1" }.merge(@configs || {}) end |
.move(data) ⇒ Object
27 28 29 |
# File 'lib/amygdala.rb', line 27 def move(data) move_handler.call(data) end |
.set_configs(configs) ⇒ Object
19 20 21 |
# File 'lib/amygdala.rb', line 19 def set_configs(configs) @configs = configs end |
.set_move_handler(handler) ⇒ Object
23 24 25 |
# File 'lib/amygdala.rb', line 23 def set_move_handler(handler) @move_handler = handler end |