summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/objects/callable.go
blob: a066e1b9025b3ca8dbfc91eb4076530fe34b7d18 (plain) (blame)
1
2
3
4
5
6
7
8
9
package objects

// Callable represents an object that can be called like a function.
type Callable interface {
	// Call should take an arbitrary number of arguments
	// and returns a return value and/or an error,
	// which the VM will consider as a run-time error.
	Call(args ...Object) (ret Object, err error)
}