Module: Redstruct::Utils::Scriptable

Included in:
List, Lock, String
Defined in:
lib/redstruct/utils/scriptable.rb

Overview

Provides utility methods to add lua scripts to any class

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

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