Class: Toy::CardItem

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#noteObject

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