class Arturo::NoSuchFeature

A Null-Object stand-in for a Feature.

Attributes

symbol[R]

Public Class Methods

new(symbol) click to toggle source
# File lib/arturo/no_such_feature.rb, line 9
def initialize(symbol)
  raise ArgumentError.new(I18n.t('arturo.no_such_feature.symbol_required')) if symbol.nil?
  @symbol = symbol
end

Public Instance Methods

enabled_for?(feature_recipient) click to toggle source
# File lib/arturo/no_such_feature.rb, line 14
def enabled_for?(feature_recipient)
  false
end
inspect() click to toggle source
# File lib/arturo/no_such_feature.rb, line 24
def inspect
  "<Arturo::NoSuchFeature #{symbol}>"
end
name() click to toggle source
# File lib/arturo/no_such_feature.rb, line 18
def name
  I18n.t('arturo.no_such_feature.name', :symbol => symbol)
end
Also aliased as: to_s
to_s()
Alias for: name