module TLib

Constants

VERSION

Public Class Methods

write_json(file_name, data) click to toggle source

Your code goes here…

# File lib/t_lib.rb, line 5
def self.write_json(file_name, data) 
  File.open(file_name, "w") do |file|
    JSON.dump(data, file)
  end
end