module Rmk::EnableToolForConfiguration

Set +@enabled+ depending on current configuration.

Public Instance Methods

disable_for(*cfg) click to toggle source

disable for listed configurations (:all refers to all)

# File lib/utilities.rb, line 192
def disable_for(*cfg)
  set_enabled_for(cfg, false)
end
enable_for(*cfg) click to toggle source

enable for listed configurations (:all refers to all)

# File lib/utilities.rb, line 187
def enable_for(*cfg)
  set_enabled_for(cfg, true)
end
enabled?() click to toggle source

Is tool enabled for current configuration?

# File lib/utilities.rb, line 182
def enabled?
  @enabled
end