Class: RuPov::Objects::FiniteSolidPrimitives::Blob

Inherits:
Base
  • Object
show all
Defined in:
lib/rupov.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#<<, #to_s

Constructor Details

#initialize(threshold) {|_self| ... } ⇒ Blob

Returns a new instance of Blob.

Yields:

  • (_self)

Yield Parameters:



40
41
42
43
44
# File 'lib/rupov.rb', line 40

def initialize ( threshold )
    super( 'blob' )
    self << Methods::Threshold.new( threshold )
    yield(self) if block_given? and self.class == Blob
end