lib/veewee/command/group_base.rb in veewee-0.4.0 vs lib/veewee/command/group_base.rb in veewee-0.4.1
- old
+ new
@@ -90,12 +90,12 @@
# for the same command. For example, `veewee version` is also
# `veewee --version` and `veewee -v`
#
def self.register(options = {})
# self refers to the class object of the provider subclass
- self.class_variable_set(:@@command, options[:command])
- self.class_variable_set(:@@description, options[:description])
- self.class_variable_set(:@@provider, options[:provider])
+ self.send(:class_variable_set, :@@command, options[:command] )
+ self.send(:class_variable_set, :@@description, options[:description])
+ self.send(:class_variable_set, :@@provider, options[:provider] )
CLI.register(self, options[:command], options[:command], options[:description], options[:opts])
end
def initialize(*args)
super