Class: Peruby::Code

Inherits:
Data
  • Object
show all
Defined in:
lib/peruby/runtime/code.rb

Overview

Compiled Perl subroutine and its captured lexical environment.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



5
6
7
# File 'lib/peruby/runtime/code.rb', line 5

def body
  @body
end

#environmentObject (readonly)

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



5
6
7
# File 'lib/peruby/runtime/code.rb', line 5

def environment
  @environment
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/peruby/runtime/code.rb', line 5

def name
  @name
end

#packageObject (readonly)

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



5
6
7
# File 'lib/peruby/runtime/code.rb', line 5

def package
  @package
end

#prototypeObject (readonly)

Returns the value of attribute prototype

Returns:

  • (Object)

    the current value of prototype



5
6
7
# File 'lib/peruby/runtime/code.rb', line 5

def prototype
  @prototype
end