Sha256: 65afa18db58ad222cea0f806af9cd2f6aac9fa5571e6d08fef16b6e2b4f293b2
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
require 'active_support/concern' require 'soundcheck/frameworks' module Languages module Base extend ActiveSupport::Concern included do attr_accessor(:project) define_method(:initialize) do |project| self.project = project end end module InstanceMethods def frameworks known_frameworks.select do |framework| framework.new(project).present? end end end end class Ruby include Base def known_frameworks [ Frameworks::RSpec, Frameworks::Cucumber ] end end class NodeJS include Base def known_frameworks [ Frameworks::Expresso ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
soundcheck-0.2.1 | lib/soundcheck/languages.rb |
soundcheck-0.2.0 | lib/soundcheck/languages.rb |