You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module Arturo
ENABLED_FOR_METHOD_NAME = /^(\w+)_enabled_for\?$/
def method_missing(symbol, *args, &block)
if (args.length == 1 && match = ENABLED_FOR_METHOD_NAME.match(symbol.to_s))
f = Arturo::Feature.to_feature(match[1])
f && f.enabled_for(args.first)
else
super(symbol, *args, &block)
end
end
def respond_to?(symbol)
symbol.to_s =~ ENABLED_FOR_METHOD_NAME || super(symbol)
end
end
The text was updated successfully, but these errors were encountered:
Something like
The text was updated successfully, but these errors were encountered: