Module: Redstruct::Utils::Scriptable
Overview
Provides utility methods to add lua scripts to any class
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Callback called whenever the module is included.
Class Method Details
.included(base) ⇒ Object
Callback called whenever the module is included. Adds all methods under ClassMethods as class methods of the includer.
11 12 13 |
# File 'lib/redstruct/utils/scriptable.rb', line 11 def self.included(base) base.extend(ClassMethods) end |