Module: TokyoMetro::Factory::Convert::Patch::ForString::BarrierFreeFacility::PlaceName

Defined in:
lib/tokyo_metro/factory/convert/patch/for_string/barrier_free_facility/place_name.rb

Instance Method Summary collapse

Instance Method Details

#processObject



3
4
5
6
7
8
9
10
# 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