Class: AssetsMapper::Xcassets

Inherits:
Object
  • Object
show all
Defined in:
lib/classes/Xcassets.rb

Direct Known Subclasses

IgnoreFolderXcassets

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filepath, ignore_folder, allow_modification) ⇒ Xcassets

Returns a new instance of Xcassets.



7
8
9
10
11
12
# File 'lib/classes/Xcassets.rb', line 7

def initialize(filepath, ignore_folder, allow_modification)
  @filepath = filepath
  @ignore_folder = ignore_folder
  @allow_modification
  @xcassets_name = ""
end

Class Method Details

.write(string, file) ⇒ Object



14
15
16
17
# File 'lib/classes/Xcassets.rb', line 14

def self.write(string, file)
  puts "Writing in " + file.yellow
  File.open(file, 'w') { |file| file.write(string) }
end