Class: BOAST::CustomType
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#vector_length ⇒ Object
readonly
Returns the value of attribute vector_length.
Instance Method Summary collapse
- #decl ⇒ Object
-
#initialize(hash = {}) ⇒ CustomType
constructor
A new instance of CustomType.
Constructor Details
#initialize(hash = {}) ⇒ CustomType
Returns a new instance of CustomType.
542 543 544 545 546 |
# File 'lib/BOAST/Algorithm.rb', line 542 def initialize(hash={}) @name = hash[:type_name] @size = hash[:size] @vector_length = hash[:vector_length] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
541 542 543 |
# File 'lib/BOAST/Algorithm.rb', line 541 def name @name end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
541 542 543 |
# File 'lib/BOAST/Algorithm.rb', line 541 def size @size end |
#vector_length ⇒ Object (readonly)
Returns the value of attribute vector_length.
541 542 543 |
# File 'lib/BOAST/Algorithm.rb', line 541 def vector_length @vector_length end |