Class: Rufus::Lua::State
- Inherits:
-
Object
- Object
- Rufus::Lua::State
- Defined in:
- lib/rufus/lua/moon.rb
Instance Method Summary collapse
Instance Method Details
#moon! ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rufus/lua/moon.rb', line 9 def moon! self['package']['path']= (['', '/init'].map{|x|File. "?#{x}.lua", Moon::Path}<< self['package']['path'])*';' eval 'require "moonscript"' self end |