Class: Chebyshev
- Inherits:
-
Object
- Object
- Chebyshev
- Defined in:
- lib/chebyshev.rb,
lib/chebyshev/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.expand(origin_file_path, yaml_file_path, result_file_path = nil) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/chebyshev.rb', line 6 def self.(origin_file_path, yaml_file_path, result_file_path=nil) erb = Erubis::Eruby.new(File.read origin_file_path) erb.result(YAML.load(File.read yaml_file_path)).tap do || if result_file_path File.write(result_file_path, ) end end end |