Class: Rufus::Lua::State

Inherits:
Object
  • Object
show all
Defined in:
lib/rufus/lua/moon.rb

Instance Method Summary collapse

Instance Method Details

#moon!Object


6
7
8
9
10
11
12
# File 'lib/rufus/lua/moon.rb', line 6

def moon!
  self['package']['path']=
    (['', '/init'].map{|x|File.expand_path "?#{x}.lua", Moon::Path}<<
     self['package']['path'])*';'
  eval 'require "moonscript"'
  self
end