Module: When::TM::Separation

Included in:
GeometricPrimitive, OrdinalEra
Defined in:
lib/when_exe/tmobjects.rb

Overview

長さと距離を計算するための操作を規定する

Instance Method Summary collapse

Instance Method Details

#distance(other) ⇒ When::TM::Duration

This method is abstract.

他のWhen::TM::GeometricPrimitiveとの時間位置の差の絶対値

Parameters:

Returns:

Raises:

  • (TypeError)


37
38
39
# File 'lib/when_exe/tmobjects.rb', line 37

def distance(other)
  raise TypeError, "Absolute Class #{self.class}"
end

#lengthWhen::TM::Duration

This method is abstract.

When::TM::GeometricPrimitive 自身の持続時間

Returns:

Raises:

  • (TypeError)


25
26
27
# File 'lib/when_exe/tmobjects.rb', line 25

def length
  raise TypeError, "Absolute Class #{self.class}"
end