Class: TokyoMetro::Rake::Assets::Image::SvgFiles::EachFile

Inherits:
Object
  • Object
show all
Defined in:
lib/tokyo_metro/rake/assets/image/svg_files/each_file.rb

Constant Summary collapse

HASH_FOR_CONVERSION =
{
  "wheel_chair" => "wheel_chair" ,
  "" => "wheel_chair" ,
  "" => "baby" ,
  "" => "ostomate" ,
  "escalator" => "escalator" ,
  "階段" => "stair" ,
  "階段昇降機" => "stairlift" ,
  "エレベーター" => "elevator" ,
  "スロープ" => "slope" ,
  "トイレ" => "toilet" ,
  "乳幼児用設備" => "facility_for_baby" ,
  "オストメイト" => "ostomate" ,
  "コインロッカー" => "locker" ,
  "" => "up" ,
  "" => "down" ,
  "上下" => "both" ,
  "改札内" => "inside" ,
  "改札外" => "outside" ,
  "station" => "station" ,
  "platform_info" => "platform_info" ,
  "barrier_free_facilities" => "barrier_free_facilities"
}

Instance Method Summary collapse

Constructor Details

#initialize(svg_dirname, asset_image_dirname, filename) ⇒ EachFile

Returns a new instance of EachFile.



27
28
29
30
31
32
33
34
# File 'lib/tokyo_metro/rake/assets/image/svg_files/each_file.rb', line 27

def initialize( svg_dirname , asset_image_dirname , filename )
  @svg_dirname = svg_dirname
  @asset_image_dirname = asset_image_dirname
  @filename = filename

  @new_file_basename = new_file_basename
  @new_dir_basename = new_dir_basename
end

Instance Method Details

#copyObject



36
37
38
39
# File 'lib/tokyo_metro/rake/assets/image/svg_files/each_file.rb', line 36

def copy
  puts ( new_filename.ljust(128) + " <= " + @filename )
  ::FileUtils.copy( @filename , new_filename )
end