Class: MetaCL::Templates::PrintMatrix
- Inherits:
-
Mustache
- Object
- Mustache
- MetaCL::Templates::PrintMatrix
- Defined in:
- lib/metacl/templates/print_matrix.rb
Instance Attribute Summary collapse
-
#matrix_name ⇒ Object
readonly
Returns the value of attribute matrix_name.
-
#size_m ⇒ Object
readonly
Returns the value of attribute size_m.
-
#size_n ⇒ Object
readonly
Returns the value of attribute size_n.
Instance Method Summary collapse
Instance Attribute Details
#matrix_name ⇒ Object (readonly)
Returns the value of attribute matrix_name.
4 5 6 |
# File 'lib/metacl/templates/print_matrix.rb', line 4 def matrix_name @matrix_name end |
#size_m ⇒ Object (readonly)
Returns the value of attribute size_m.
4 5 6 |
# File 'lib/metacl/templates/print_matrix.rb', line 4 def size_m @size_m end |
#size_n ⇒ Object (readonly)
Returns the value of attribute size_n.
4 5 6 |
# File 'lib/metacl/templates/print_matrix.rb', line 4 def size_n @size_n end |
Instance Method Details
#render(matrix_name, size_n, size_m, platform) ⇒ Object
6 7 8 9 10 |
# File 'lib/metacl/templates/print_matrix.rb', line 6 def render(matrix_name, size_n, size_m, platform) @size_n, @size_m, @matrix_name = size_n, size_m, matrix_name super IO.read("#{__dir__}/print_matrix.any.template") end |