Class: When::TM::OrdinalEra
- Inherits:
-
Object
- Object
- BasicTypes::Object
- Object
- When::TM::OrdinalEra
- Includes:
- Separation
- Defined in:
- lib/when_exe/tmreference.rb
Overview
順序時間参照系
see gml schema
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 collapse
-
#begin ⇒ When::BasicTypes::DateTime
readonly
この順序年代が始まる時点.
Attributes inherited from BasicTypes::Object
Attributes included from Parts::Resource
#_pool, #child, #keys, #locale, #namespace
Instance Method Summary collapse
-
#^(other) ⇒ Object
When::TM::TemporalPosition ^ When::TM::OrdinalEra で呼ばれる.
-
#end ⇒ When::BasicTypes::DateTime
この順序年代が終わる時点.
-
#group ⇒ When::TM::OrdinalEra?
この順序年代が属する上位順序年代 (relation - Composition).
-
#include?(other) ⇒ Boolean
日時が属するか?.
-
#system ⇒ When::TM::OrdinalReferenceSystem?
この順序年代が属する順序時間参照系 (relation - Structure).
Methods included from Separation
Methods inherited from BasicTypes::Object
Methods included from Parts::Resource
#[], _extract_prefix, _instance, _parse, _path_with_prefix, #each, #enum_for, #hierarchy, #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
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (private)
When::TM::OrdinalEra で定義されていないメソッドは 処理を @begin (type: When::TM::TemporalPosition) に委譲する
その他のメソッド
848 849 850 |
# File 'lib/when_exe/tmreference.rb', line 848 def method_missing(name, *args, &block) @begin.send(name.to_sym, *args, &block) end |
Instance Attribute Details
#begin ⇒ When::BasicTypes::DateTime (readonly)
この順序年代が始まる時点
Date at which the ordinal era began
785 786 787 |
# File 'lib/when_exe/tmreference.rb', line 785 def begin @begin end |
Instance Method Details
#^(other) ⇒ Object
When::TM::TemporalPosition ^ When::TM::OrdinalEra で呼ばれる
811 812 813 |
# File 'lib/when_exe/tmreference.rb', line 811 def ^(other) include?(other) ? self : nil end |
#end ⇒ When::BasicTypes::DateTime
この順序年代が終わる時点
Date at which the ordinal era ended
793 794 795 |
# File 'lib/when_exe/tmreference.rb', line 793 def end @end || (@_pool['.->'] ? @_pool['.->'].begin : nil) end |
#group ⇒ When::TM::OrdinalEra?
この順序年代が属する上位順序年代 (relation - Composition)
Ordinal era that contains this ordinal era
775 776 777 |
# File 'lib/when_exe/tmreference.rb', line 775 def group _pool['..'].kind_of?(String)? nil : _pool['..'] end |
#include?(other) ⇒ Boolean
日時が属するか?
805 806 807 |
# File 'lib/when_exe/tmreference.rb', line 805 def include?(other) self.begin <= other && other < self.end end |
#system ⇒ When::TM::OrdinalReferenceSystem?
この順序年代が属する順序時間参照系 (relation - Structure)
Ordinal reference system that contains this ordinal era
765 766 767 |
# File 'lib/when_exe/tmreference.rb', line 765 def system _pool['..'].kind_of?(String) ? _pool['..'] : nil end |