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
30 31 32 |
# File 'lib/decoct/dmeta.rb', line 30 def self.included(host_class) host_class.extend(ClassMethods) end |
Instance Method Details
#copy_file(from, to) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/decoct/dmeta.rb', line 8 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 |