Class: When::Coordinates::CalendarBorder
- Inherits:
-
Border
- Object
- BasicTypes::Object
- Border
- When::Coordinates::CalendarBorder
- Defined in:
- lib/when_exe/coordinates.rb
Overview
基準暦法の新年による境界
Constant Summary
Constants included from Parts::Resource
Parts::Resource::ConstList, Parts::Resource::ConstTypes, Parts::Resource::IRIDecode, Parts::Resource::IRIDecodeTable, Parts::Resource::IRIEncode, Parts::Resource::IRIEncodeTable, Parts::Resource::IRIHeader, Parts::Resource::LabelProperty
Instance Attribute Summary
Attributes inherited from BasicTypes::Object
Attributes included from Parts::Resource
#_pool, #child, #keys, #locale, #namespace
Instance Method Summary collapse
Methods inherited from Border
#_adjust_epoch, #_date_adjust, #behavior
Methods included from Parts::Resource
#[], #^, _abbreviation_to_iri, _decode, _encode, _extract_prefix, _instance, _instantiate, _parse, _path_with_prefix, _replace_tags, _setup_, _setup_info, _simplify_path, base_uri, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #next, #parent, #prev, #registered?, root_dir
Methods included from Parts::Resource::Pool
#[], #[]=, #_pool, #_setup_, #pool_keys
Methods included from Parts::Resource::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 = nil) ⇒ Array<Numeric>
境界の取得
2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 |
# File 'lib/when_exe/coordinates.rb', line 2355 def border(date=[], frame=nil) last = date.length-1 return @border if last<0 args = date.dup << {:frame=>@engine} args[0] += frame.origin_of_MSC + @border[last] * 1 + (frame.epoch_in_CE - @engine.epoch_in_CE) b_date = frame._encode(frame._number_to_coordinates(When.tm_pos(*args).to_i), nil) branch = @border[last] * 0 b_date[last] = When::Coordinates::Pair.new(date[last] * 1, branch) return b_date end |