Method: When::Parts::GeometricComplex#apply_delayed_options

Defined in:
lib/when_exe/parts/geometric_complex.rb

#apply_delayed_options(options) ⇒ When::Parts::GeometricComplex

オブジェクト変換オプションの遅延適用

Parameters:

  • options (Hash)

    以下の通り

Options Hash (options):

Returns:



236
237
238
239
240
241
242
243
244
245
246
247
# File 'lib/when_exe/parts/geometric_complex.rb', line 236

def apply_delayed_options(options)
  last_node = nil
  self.class.new(@node.map {|node|
    point, flag, range = node
    if range && last_node
      [last_node + range, flag, range]
    else
       last_node = point.apply_delayed_options(options)
      [last_node, flag]
    end
  }, @reverse)
end