Sha256: 4aaadfa5dd4c0fa2bac255b5c354d251d4ac40e0e868884d129f41586c56a1d3
Contents?: true
Size: 685 Bytes
Versions: 9
Compression:
Stored size: 685 Bytes
Contents
require File.dirname(__FILE__) + "/display" module PoolParty module Console include Display # Load a file that contains a pool into memory def load_pool(filename) filename = filename.chomp unless filename && ::File.readable?(filename) puts "Could not load pool: #{filename}" exit else PoolParty::Script.inflate(open(filename).read, File.dirname(filename)) end end # Clear all the pools and reload the console # Call within console to reset and reload the entire poolparty base # as well def reload! reset! end end end class Object include PoolParty::Console end
Version data entries
9 entries across 9 versions & 2 rubygems