module Arturo

Constants

VERSION

Public Class Methods

feature_enabled_for?(feature_name, recipient) click to toggle source

Quick check for whether a feature is enabled for a recipient. @param [String, Symbol] feature_name @param [#id] recipient @return [true,false] whether the feature exists and is enabled for the recipient

# File lib/arturo.rb, line 17
def feature_enabled_for?(feature_name, recipient)
  return false if recipient.nil?

  f = self::Feature.to_feature(feature_name)
  f && f.enabled_for?(recipient)
end
logger() click to toggle source
# File lib/arturo.rb, line 28
def logger
  @logger || NullLogger.new
end
logger=(logger) click to toggle source
# File lib/arturo.rb, line 24
def logger=(logger)
  @logger = logger
end