lib/runcible/instance.rb in runcible-1.0.7 vs lib/runcible/instance.rb in runcible-1.0.8

- old
+ new

@@ -32,11 +32,10 @@ def self.extension_classes @@extension_classes ||= gather_classes("extensions") @@extension_classes end - attr_accessor :resources attr_accessor :extensions # Initialize a Runcible instance # @@ -70,10 +69,14 @@ # @param [Object] value The value of the config to update def update_config(key, value) @config[key] = value end + def config + @config + end + private def initialize_wrappers(config) self.resources = Wrapper.new('resources') self.extensions = Wrapper.new('extensions') @@ -103,11 +106,10 @@ classes = base_names.collect{|name| const.const_get(name.camelize)} end end - #Wrapper class to provide access to instances class Wrapper def initialize(name) @name = name @@ -121,9 +123,8 @@ def to_s "#{@name} - #{@methods.uniq.sort.to_s}" end end - end