Module: Controll::Macros::ClassMethods

Defined in:
lib/controll/macros.rb

Instance Method Summary collapse

Instance Method Details

#enable_controllObject



6
7
8
9
# File 'lib/controll/macros.rb', line 6

def enable_controll
  clazz = self.ancestors.include?(::Imperator::Command) ? Controll::Focused::Enabler : Controll::Enabler
  self.send :include, clazz
end