Skip to content

Instantly share code, notes, and snippets.

@2called-chaos
Created May 8, 2016 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2called-chaos/3e81fb2e7a5a66d60351d59a99a24683 to your computer and use it in GitHub Desktop.
Save 2called-chaos/3e81fb2e7a5a66d60351d59a99a24683 to your computer and use it in GitHub Desktop.
module Mcl
class HMclCBSBuilder
class Blueprint
# ...
end
end
end
module Mcl
class HMclCBSBuilder < Handler
module Commands
def com_load player, args
bp, url = current_blueprint(player), args[0]
load_blueprint(url) do |blueprint, ex|
# ...
end
end
end
include Commands
module Helper
def load_blueprint url, &callback
blueprint = ::Mcl::HMclCBSBuilder::Blueprint.new(content)
# NameError: uninitialized constant Mcl::HMclCBSBuilder::Blueprint
end
end
include Helper
end
end
module Mcl
class HMclCBSBuilder
class Printer
# ...
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment