-
-
Save 2called-chaos/3e81fb2e7a5a66d60351d59a99a24683 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Mcl | |
class HMclCBSBuilder | |
class Blueprint | |
# ... | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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