class BOAST::ControlStructure
Attributes
args[RW]
Public Class Methods
inherited(child)
click to toggle source
# File lib/BOAST/Language/ControlStructure.rb, line 9 def self.inherited(child) child.extend Functor end
new()
click to toggle source
# File lib/BOAST/Language/ControlStructure.rb, line 41 def initialize @args = nil end
Private Class Methods
token_string_generator(name, *args)
click to toggle source
# File lib/BOAST/Language/ControlStructure.rb, line 26 def token_string_generator(name, *args) return <<EOF def #{name}_string(#{args.join(",")}) return eval get_strings[get_lang][:#{name}] end EOF end
Public Instance Methods
[](*args)
click to toggle source
# File lib/BOAST/Language/ControlStructure.rb, line 36 def [](*args) @args = args return self end
Private Instance Methods
get_strings()
click to toggle source
# File lib/BOAST/Language/ControlStructure.rb, line 13 def get_strings return { C => get_c_strings, CL => get_cl_strings, CUDA => get_cuda_strings, FORTRAN => get_fortran_strings } end