Class: Regexp

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

Overview

Extensions to Regexp class

Instance Method Summary collapse

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



384
385
386
# File 'lib/when_exe/core/extension.rb', line 384

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

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

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



395
396
397
# File 'lib/when_exe/core/extension.rb', line 395

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