class AssetsMapper::IgnoreFolderXcassets
Public Class Methods
new(filepath, allow_modification)
click to toggle source
Calls superclass method
AssetsMapper::Xcassets::new
# File lib/classes/Xcassets.rb, line 21 def initialize(filepath, allow_modification) super(filepath, false, allow_modification) imagesets = Dir.glob("#{@filepath}/**/*.imageset") .map{|s| s.split('/')} .flat_map{|x| x} .select {|x|x.include?'.imageset'} .sort @xcassets_name = @filepath.match('[\.\/.]*(.*).xcassets').captures @enum = Enum.new(@xcassets_name) imagesets.each do |i| asset_name = i.match('(.*).imageset').captures[0] image_name = AssetsMapper.check_string( asset_name, allow_modification ) string = Enum.static_let(image_name, asset_name) @enum.add_children(string) end end
Public Instance Methods
enum()
click to toggle source
# File lib/classes/Xcassets.rb, line 43 def enum @enum end