Sha256: 8c62fb83d2c021c2d47d21fffe007e3ea0ca70cf7d4c1ca91671a1918efad2f9

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

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

  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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/factory/convert/patch/for_string/barrier_free_facility/place_name.rb