Class: NormResult
- Inherits:
-
Object
- Object
- NormResult
- 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
-
#rms ⇒ Object
Returns the value of attribute rms.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(y, rms) ⇒ NormResult
constructor
A new instance of NormResult.
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
#rms ⇒ Object
Returns the value of attribute rms.
482 483 484 |
# File 'lib/toy/models/transformer.rb', line 482 def rms @rms end |
#y ⇒ Object
Returns the value of attribute y.
482 483 484 |
# File 'lib/toy/models/transformer.rb', line 482 def y @y end |