Class: When::EX::Extent
- Inherits:
-
Object
- Object
- When::EX::Extent
- Defined in:
- lib/when_exe/basictypes.rb
Overview
Instance Attribute Summary collapse
-
#temporal_extent ⇒ When::TM::Period
(also: #temporalExtent)
readonly
time periods.
Instance Method Summary collapse
-
#initialize(extent) ⇒ Extent
constructor
オブジェクトの生成.
-
#method_missing(name, *args, &block) ⇒ Object
その他のメソッド.
Constructor Details
#initialize(extent) ⇒ Extent
オブジェクトの生成
783 784 785 |
# File 'lib/when_exe/basictypes.rb', line 783 def initialize(extent) @temporal_extent = extent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
Note:
When::EX::Extent で定義されていないメソッドは 処理を @temporal_extent (type: When::TM::Period) に委譲する
その他のメソッド
792 793 794 795 796 797 798 799 800 801 |
# File 'lib/when_exe/basictypes.rb', line 792 def method_missing(name, *args, &block) self.class.module_eval %Q{ def #{name}(*args, &block) list = args.map {|arg| arg.kind_of?(self.class) ? arg.temporal_extent : arg} @temporal_extent.send("#{name}", *list, &block) end } unless When::Parts::MethodCash.escape(name) list = args.map {|arg| arg.kind_of?(self.class) ? arg.temporal_extent : arg} @temporal_extent.send(name, *list, &block) end |
Instance Attribute Details
#temporal_extent ⇒ When::TM::Period (readonly) Also known as: temporalExtent
time periods
時間的使用範囲の上限と下限を示す
776 777 778 |
# File 'lib/when_exe/basictypes.rb', line 776 def temporal_extent @temporal_extent end |