Sha256: 638a72d566abe67ec7ba9f757188b966ca0a17dc9b8f23484f6c0f1a6fb8189f
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
# The main SmartMachine Grids module SmartMachine class Grids < SmartMachine::Base def run(*args) args.flatten! grid_name = args.shift action = args.shift raise "invalid action on the grid" unless ['up', 'down'].include? action Object.const_get("SmartMachine::Grids::#{grid_name.capitalize}").new.public_send(action, *args) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartmachine-0.7.0 | lib/smart_machine/grids.rb |