Sha256: bcd3fc9c4f51e59fee64a997c5b96d7bedc25806938294c26fd4df77761dcc44
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
# angular_init (short-name: ngi) # Copyright 2015 Joshua Beam # github.com/joshbeam/angular_init # MIT License # CURRENT_DIR is defined in angualr_init.rb # require CURRENT_DIR+'/generator' # require CURRENT_DIR+'/configure' require_relative 'generator' require_relative 'configure' # Generator and Configure are "wrapped" in this class # that "delegates" (hence the name "Delegate") # the flow of control to either the Generator class # or the Configure class, based on the argument passed # in (which is handled by bin/ngi) class Delegate Generator = ::Generator Configure = ::Configure end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ngi-0.2.3 | lib/ngi/delegate.rb |
ngi-0.2.2 | lib/ngi/delegate.rb |