Sha256: 2d3121f5a2c252a2b1c2cfd2f13629aa754e37c8ded09c9a45f0e71f917243ee

Contents?: true

Size: 243 Bytes

Versions: 27

Compression:

Stored size: 243 Bytes

Contents

module FeatureSupport

  def supports?(feature)
    features.member?(feature)
  end

  def supports_any?(*features)
    features.any?(&method(:supports?))
  end

  def supports_all?(*features)
    features.all?(&method(:supports?))
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
houston-core-0.9.2 app/concerns/feature_support.rb
houston-core-0.9.1 app/concerns/feature_support.rb
houston-core-0.9.0 app/concerns/feature_support.rb
houston-core-0.9.0.rc1 app/concerns/feature_support.rb
houston-core-0.8.4 app/concerns/feature_support.rb
houston-core-0.8.3 app/concerns/feature_support.rb
houston-core-0.8.2 app/concerns/feature_support.rb
houston-core-0.8.1 app/concerns/feature_support.rb
houston-core-0.8.0 app/concerns/feature_support.rb
houston-core-0.8.0.pre2 app/concerns/feature_support.rb
houston-core-0.8.0.pre app/concerns/feature_support.rb
houston-core-0.7.0 app/concerns/feature_support.rb
houston-core-0.7.0.beta4 app/concerns/feature_support.rb
houston-core-0.7.0.beta3 app/concerns/feature_support.rb
houston-core-0.7.0.beta2 app/concerns/feature_support.rb
houston-core-0.7.0.beta app/concerns/feature_support.rb
houston-core-0.6.3 app/concerns/feature_support.rb
houston-core-0.6.2 app/concerns/feature_support.rb
houston-core-0.6.1 app/concerns/feature_support.rb
houston-core-0.6.0 app/concerns/feature_support.rb