class StonesSpec::Subject::Function

Public Instance Methods

ast_regexp() click to toggle source
# File lib/subject.rb, line 75
def ast_regexp
  /AST\(function\s*#{@name}/
end
test_program(source, arguments) click to toggle source
# File lib/subject.rb, line 67
def test_program(source, arguments)
  "program {
    return (#{call_string arguments})
  }

  #{source}"
end