class FeatureGuard
Public Class Methods
enabled?(*features)
click to toggle source
# File lib/mspec/guards/feature.rb, line 4 def self.enabled?(*features) new(*features).match? end
Public Instance Methods
match?()
click to toggle source
# File lib/mspec/guards/feature.rb, line 8 def match? @parameters.all? { |f| MSpec.feature_enabled? f } end