class WorkGem
Public Class Methods
new(n, fromSource)
click to toggle source
# File lib/nmax_ch.rb, line 8 def initialize(n, fromSource) @nmax = n @source = fromSource end
Public Instance Methods
print_array()
click to toggle source
# File lib/nmax_ch.rb, line 13 def print_array puts get_numbers(@nmax, @source) end