Module: FPM::Fry::Plugin::EditStaging
- Defined in:
- lib/fpm/fry/plugin/edit_staging.rb
Overview
Defined Under Namespace
Classes: AddFile, DSL, LnS
Class Method Summary
collapse
Class Method Details
.apply(builder) {|dsl| ... } ⇒ DSL
77
78
79
80
81
82
83
84
85
86
87
|
# File 'lib/fpm/fry/plugin/edit_staging.rb', line 77
def self.apply(builder, &block)
d = DSL.new(builder)
if !block
return d
elsif block.arity == 1
block.call(d)
else
d.instance_eval(&block)
end
return d
end
|