module TokyoMetro::Factory::Convert::Patch::ForString::BarrierFreeFacility::PlaceName
Public Instance Methods
process()
click to toggle source
# File lib/tokyo_metro/factory/convert/patch/for_string/barrier_free_facility/place_name.rb, line 3 def process str = self.zen_num_to_han str = str.convert_comma_between_number_to_dot str = str.gsub( "東部スカイツリーライン" , "東武スカイツリーライン" ) str = str.gsub( /(?<=出) ?(?=入口)/ , "" ) str = str.gsub( /[ ]?(([a-zA-z\d]+))/ ) { " (#{ $1 })" } str end