Class: TokyoMetro::Rake::Assets::Image::SvgFiles::EachFile
- Inherits:
-
Object
- Object
- TokyoMetro::Rake::Assets::Image::SvgFiles::EachFile
- 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
- #copy ⇒ Object
-
#initialize(svg_dirname, asset_image_dirname, filename) ⇒ EachFile
constructor
A new instance of EachFile.
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
#copy ⇒ Object
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 |