Class: Toy::CardItem
- Inherits:
-
Object
- Object
- Toy::CardItem
- Defined in:
- lib/toy/dev/toy_card.rb
Overview
One labelled row in the Input/Output/Param header.
add_input("x", "{1..V}^T", "token IDs")
→ " Input: x ∈ {1..V}^T (token IDs)"
Instance Attribute Summary collapse
-
#name_ ⇒ Object
Returns the value of attribute name_.
-
#note ⇒ Object
Returns the value of attribute note.
-
#type_ ⇒ Object
Returns the value of attribute type_.
Instance Method Summary collapse
-
#initialize(name_, type_, note) ⇒ CardItem
constructor
A new instance of CardItem.
Constructor Details
#initialize(name_, type_, note) ⇒ CardItem
Returns a new instance of CardItem.
41 42 43 44 45 |
# File 'lib/toy/dev/toy_card.rb', line 41 def initialize(name_, type_, note) @name_ = name_ @type_ = type_ @note = note end |
Instance Attribute Details
#name_ ⇒ Object
Returns the value of attribute name_.
39 40 41 |
# File 'lib/toy/dev/toy_card.rb', line 39 def name_ @name_ end |
#note ⇒ Object
Returns the value of attribute note.
39 40 41 |
# File 'lib/toy/dev/toy_card.rb', line 39 def note @note end |
#type_ ⇒ Object
Returns the value of attribute type_.
39 40 41 |
# File 'lib/toy/dev/toy_card.rb', line 39 def type_ @type_ end |