Class: Taoism::Runtime::Function

Inherits:
Struct
  • Object
show all
Defined in:
lib/taoism/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



15
16
17
# File 'lib/taoism/runtime.rb', line 15

def body
  @body
end

#closureObject

Returns the value of attribute closure

Returns:

  • (Object)

    the current value of closure



15
16
17
# File 'lib/taoism/runtime.rb', line 15

def closure
  @closure
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



15
16
17
# File 'lib/taoism/runtime.rb', line 15

def name
  @name
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



15
16
17
# File 'lib/taoism/runtime.rb', line 15

def params
  @params
end

#receiverObject

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



15
16
17
# File 'lib/taoism/runtime.rb', line 15

def receiver
  @receiver
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/taoism/runtime.rb', line 16

def to_s
  "<fun #{name || '(lambda)'}>"
end