Class: NormResult

Inherits:
Object
  • Object
show all
Defined in:
lib/toy/models/transformer.rb

Overview

Result wrappers — Spinel doesn’t reliably handle [Mat, OtherType] tuple destructuring (the tuple gets typed as PolyArray and member access boxes the values). One small class per return shape keeps things explicit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(y, rms) ⇒ NormResult

Returns a new instance of NormResult.



483
# File 'lib/toy/models/transformer.rb', line 483

def initialize(y, rms); @y = y; @rms = rms; end

Instance Attribute Details

#rmsObject

Returns the value of attribute rms.



482
483
484
# File 'lib/toy/models/transformer.rb', line 482

def rms
  @rms
end

#yObject

Returns the value of attribute y.



482
483
484
# File 'lib/toy/models/transformer.rb', line 482

def y
  @y
end