class StartingBlocks::Contract

Attributes

options[R]

Public Class Methods

for(options) click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 32
def self.for options
  @contract_types.last.new options
end
inherited(klass) click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 11
def self.inherited klass
  @contract_types ||= []
  @contract_types << klass
end
new(options) click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 7
def initialize options
  @options = options
end

Public Instance Methods

execute_these_files(files) click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 28
def execute_these_files files
  raise 'You have to define how to execute these files.'
end
extensions() click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 20
def extensions
  []
end
file_clues() click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 16
def file_clues
  ["test", "spec"]
end
filter_these_files(files) click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 24
def filter_these_files files
  files
end