Module: Cuttings

Extended by:
ActiveSupport::Autoload
Defined in:
lib/cuttings.rb,
lib/cuttings/cutting.rb,
lib/cuttings/railtie.rb,
lib/cuttings/version.rb,
lib/cuttings/greenhouse.rb,
lib/generators/cuttings/install/install_generator.rb

Defined Under Namespace

Classes: Cutting, Greenhouse, InstallGenerator, Railtie

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.plant(&block) ⇒ Object



7
8
9
10
11
# File 'lib/cuttings.rb', line 7

def self.plant(&block)
  greenhouse = Cuttings::Greenhouse.new
  greenhouse.instance_eval(&block)
  greenhouse.process
end