Class: SiSU_JSON::Source::Output
- Inherits:
-
Object
- Object
- SiSU_JSON::Source::Output
- Defined in:
- lib/sisu/json.rb
Instance Method Summary collapse
-
#initialize(data, md) ⇒ Output
constructor
A new instance of Output.
- #json ⇒ Object
Constructor Details
Instance Method Details
#json ⇒ Object
403 404 405 406 407 408 409 410 411 |
# File 'lib/sisu/json.rb', line 403 def json SiSU_Env::FileOp.new(@md).mkdir filename_json=@file.write_file.json @data.each do |str| str=str.gsub(/\A\s+\Z/m,'') #str.gsub(/^\s+$/,'') filename_json.puts str unless str.empty? end filename_json.close end |