Class: Lich::Common::Scripting

Inherits:
Object
  • Object
show all
Defined in:
lib/common/script.rb

Overview

This class handles the scripting functionality within the Lich module.

Instance Method Summary collapse

Instance Method Details

#scriptBinding

Returns a binding for a new script.

Examples:

scripting = Lich::Common::Scripting.new
binding = scripting.script

Returns:

  • (Binding)

    A new binding for the script.



21
22
23
# File 'lib/common/script.rb', line 21

def script
  Proc.new {}.binding
end