Module: Hornetseye::OBJECT::Match

Included in:
Node
Defined in:
lib/multiarray/object.rb

Overview

Namespace containing method for matching elements of type OBJECT

See Also:

Instance Method Summary collapse

Instance Method Details

#align(context) ⇒ Object

Perform type alignment

Align this type to another. This is used to prefer single-precision floating point in certain cases.

Parameters:

  • context (Class)

    Other type to align with.



148
149
150
# File 'lib/multiarray/object.rb', line 148

def align( context )
  self
end

#fit(*values) ⇒ Class

Method for matching elements of type OBJECT

Parameters:

  • *values (Array<Object>)

    Values to find matching native element type for.

Returns:

  • (Class)

    Native type fitting all values.

See Also:



136
137
138
# File 'lib/multiarray/object.rb', line 136

def fit( *values )
  OBJECT
end