This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module FunctionalQuery | |
def initialize(collection) | |
@collection = collection | |
end | |
def result | |
@collection | |
end | |
def average_by_attr(attr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'cucumber/rake/task' | |
def run_rake_task(name) | |
begin | |
Rake::Task[name].invoke | |
rescue Exception => e | |
return false | |
end | |
true | |
end |