Module: McBlocky

Defined in:
lib/mcblocky.rb,
lib/mcblocky/cli.rb,
lib/mcblocky/dsl.rb,
lib/mcblocky/config.rb,
lib/mcblocky/server.rb,
lib/mcblocky/context.rb,
lib/mcblocky/logging.rb,
lib/mcblocky/version.rb,
lib/mcblocky/executor.rb,
lib/mcblocky/listener.rb,
lib/mcblocky/location.rb

Defined Under Namespace

Modules: DSL, Logging Classes: Cli, Config, Context, Executor, Listener, Location, Rect, RelativeLocation, Server, ServerShutdown

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.reload!Object



2
3
4
5
6
7
8
9
# File 'lib/mcblocky.rb', line 2

def self.reload!
  McBlocky.send(:remove_const, :DSL) if defined? McBlocky::DSL
  McBlocky.send(:remove_const, :Context) if defined? McBlocky::Context
  McBlocky.send(:remove_const, :Executor) if defined? McBlocky::Executor
  load File.expand_path('mcblocky/dsl.rb', File.dirname(__FILE__))
  load File.expand_path('mcblocky/context.rb', File.dirname(__FILE__))
  load File.expand_path('mcblocky/executor.rb', File.dirname(__FILE__))
end