Module: Decoct::Dmeta
Defined Under Namespace
Modules: ClassMethods
Constant Summary
Constants included from Dconstants
Decoct::Dconstants::LIB, Decoct::Dconstants::PUBLIC, Decoct::Dconstants::SPEC, Decoct::Dconstants::TEMPLATES, Decoct::Dconstants::VIEWS
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(host_class) ⇒ Object
32 33 34 |
# File 'lib/dmeta.rb', line 32 def self.included(host_class) host_class.extend(ClassMethods) end |
Instance Method Details
#copy_file(from, to) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/dmeta.rb', line 9 def copy_file(from, to) if from.is_a?(Array) && to.is_a?(Array) from.each_index {|i| copy_file(from[i], to[i])} else File.copy(Dconstants::TEMPLATES + from, to) end end |