module Superseeder

Constants

VERSION

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/superseeder.rb, line 3
def self.configure
  yield self
end
verbose!() click to toggle source
# File lib/superseeder.rb, line 7
def self.verbose!
  @@verbose = true
end

Public Instance Methods

seed(symbol, *args, &block) click to toggle source
# File lib/superseeder.rb, line 15
def seed(symbol, *args, &block)
  require 'superseeder/seedable'
  klass = symbol.to_s.classify.constantize
  klass.extend Superseeder::Seedable
  klass.seed *args, &block
end
verbose?() click to toggle source
# File lib/superseeder.rb, line 11
def verbose?
  @@verbose ||= false
end