Method: BOAST::CKernel#to_s

Defined in:
lib/BOAST/Runtime/CKernel.rb

#to_sString

Returns source code of the kernel.

Returns:

  • (String)

    source code of the kernel



88
89
90
91
92
93
94
95
# File 'lib/BOAST/Runtime/CKernel.rb', line 88

def to_s
  if @lang == FORTRAN then
    return line_limited_source
  else
    @code.rewind
    return code.read
  end
end