Class: SFRP::Low::DSL::FuncProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/sfrp/low/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFuncProxy

Returns a new instance of FuncProxy.



48
49
50
51
# File 'lib/sfrp/low/dsl.rb', line 48

def initialize
  @params = []
  @stmts = []
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



46
47
48
# File 'lib/sfrp/low/dsl.rb', line 46

def params
  @params
end

#stmtsObject (readonly)

Returns the value of attribute stmts.



46
47
48
# File 'lib/sfrp/low/dsl.rb', line 46

def stmts
  @stmts
end

Instance Method Details

#<<(stmt) ⇒ Object



57
58
59
# File 'lib/sfrp/low/dsl.rb', line 57

def <<(stmt)
  @stmts << stmt
end

#append_param(type_str, var_str) ⇒ Object



53
54
55
# File 'lib/sfrp/low/dsl.rb', line 53

def append_param(type_str, var_str)
  @params << Function::Param.new(type_str, var_str)
end