Class: MetaCL::Templates::PrintMatrix

Inherits:
Mustache
  • Object
show all
Defined in:
lib/metacl/templates/print_matrix.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#matrix_nameObject (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_mObject (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_nObject (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