Class: AssetsMapper::Xcassets
- Inherits:
-
Object
- Object
- AssetsMapper::Xcassets
- Defined in:
- lib/classes/Xcassets.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filepath, ignore_folder, allow_modification) ⇒ Xcassets
constructor
A new instance of Xcassets.
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 |