lib/cloud_party/context.rb in cloud_party-0.1.1.pre.alpha.1 vs lib/cloud_party/context.rb in cloud_party-0.1.1
- old
+ new
@@ -1,15 +1,13 @@
# frozen_string_literal: true
require 'httparty'
require 'cloud_party/config'
module CloudParty
- class Context
- attr_reader :cfg
- define_singleton_method(:cfg) do
- CloudParty::Config.new
- end
- def self.inherited(subclass)
- # I don't know yet
+ module Context
+ def self.included(base)
+ base.define_singleton_method(:cfg) do
+ CloudParty::Config.new
+ end
end
end
end