Class: Regexp

Inherits:
Object
  • Object
show all
Includes:
When::EncodingConversion
Defined in:
lib/when_exe/core/extension.rb

Overview

Extensions to Regexp class

Instance Method Summary collapse

Methods included from When::EncodingConversion

#+@, #-@, #to_external_encoding, #to_internal_encoding

Instance Method Details

#calendar_era(options = {}) ⇒ Array<When::TM::CalendarEra> Also known as: to_era

Note:

core/extension

self を検索する暦年代にマッチする正規表現とみなして登録された When::TM::CalendarEraを検索

see also When.era



428
429
430
# File 'lib/when_exe/core/extension.rb', line 428

def era(*args)
  When::TM::CalendarEra._instance(*([self] + args))
end

#ideographic_unification(pattern = When::Locale._unification) ⇒ Regexp

包摂リストに登録されている文字を包摂する



439
440
441
# File 'lib/when_exe/core/extension.rb', line 439

def ideographic_unification(pattern=When::Locale._unification)
  When::Locale.ideographic_unification(self, pattern)
end