Class: When::CalendarTypes::Easter

Inherits:
Border show all
Defined in:
lib/when_exe/region/christian.rb

Overview

日時要素の境界 - 復活祭

Constant Summary

Constants included from Parts::Resource

Parts::Resource::LabelProperty, Parts::Resource::Prefix, Parts::Resource::PrefixIndex, Parts::Resource::PrefixKeys, Parts::Resource::PrefixValues

Instance Attribute Summary

Attributes inherited from TM::ReferenceSystem

#domain, #domain_of_validity, #position

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

#_pool, #child, #keys, #locale, #namespace

Instance Method Summary collapse

Methods inherited from Border

#_adjust_epoch, #behavior

Methods inherited from TM::ReferenceSystem

#name

Methods inherited from BasicTypes::Object

#tap

Methods included from Parts::Resource

#[], #^, _extract_prefix, _instance, _parse, _path_with_prefix, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #next, #parent, #prev, #registered?

Methods included from Parts::Resource::Pool

#[], #[]=, #_pool, #_setup_, #pool_keys

Methods included from Parts::Resource::Synchronize

#synchronize

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class When::Parts::Resource

Instance Method Details

#border(date = [], frame = When.Calendar('Gregorian')) ⇒ Array<Numeric>

境界の取得

Parameters:

Returns:



444
445
446
# File 'lib/when_exe/region/christian.rb', line 444

def border(date=[], frame=When.Calendar('Gregorian'))
  frame._encode(frame._number_to_coordinates(frame.note.easter(date[0], frame)), false)
end