Class: RiotSetBuilder::BuildFile

Inherits:
Object
  • Object
show all
Defined in:
lib/riot_set_builder/build_file.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ BuildFile

Returns a new instance of BuildFile


3
4
5
# File 'lib/riot_set_builder/build_file.rb', line 3

def initialize(file_path)
  #@file_path = file_path
end

Instance Method Details

#add(builds) ⇒ Object


11
12
13
14
15
16
17
# File 'lib/riot_set_builder/build_file.rb', line 11

def add(builds)
  #File.open(file_path) do |f|
  #  builds.each do |build|
  #    f.puts build.to_json
  #  end
  #end
end

#clearObject


7
8
9
# File 'lib/riot_set_builder/build_file.rb', line 7

def clear
  #File.open(file_path, 'w') {}
end