Class: SC::Builder::JSON
Overview
This build is used to process a single JSON file. It will substitute static_url and the like as needed.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
build, #initialize, #joinlines, #read, #readlines, #replace_static_url, #sc_static_match, #static_url, #writeline, #writelinebinary, #writelines
Constructor Details
This class inherits a constructor from SC::Builder::Base
Instance Method Details
#build(dst_path) ⇒ Object
17 18 19 20 21 |
# File 'lib/sproutcore/builders/json.rb', line 17 def build(dst_path) lines = read(entry[:source_path]) replace_static_url(lines) writelines dst_path, lines end |