Module: Gloss::Utils
Class Method Summary collapse
Class Method Details
.src_path_to_output_path(src_path) ⇒ Object
11 12 13 14 |
# File 'lib/gloss/writer.rb', line 11 def src_path_to_output_path(src_path) src_path.sub("#{Config.src_dir}/", "") .sub(/\.gl$/, ".rb") end |
.with_file_header(str) ⇒ Object
9 10 11 |
# File 'lib/gloss/builder.rb', line 9 def with_file_header(str) "#{Builder::FILE_HEADER}\n\n#{str}" end |