Module: RVM::ActsAsRVMType

Defined in:
lib/rvm/acts_as_rvm_type.rb

Overview

RVM::ActsAsRVMType is a mixin that allows to quickly publish classes and types to the rVM interpreter without going through the hassle of defining each function on it’s own and publisheing every varialbe that is watned.

The function to call is ActsAsRVMTypeMethods::acts_as_rvm_type.

Example

class Test
  # Add the readers and writers for
  attr_accessor :var
  include RVM::ActsAsRVMType
  acts_as_rvm_type
  register_variable :var
  register_function :to_s
end

Defined Under Namespace

Modules: ActsAsRVMTypeInstanceMethods, ActsAsRVMTypeMethods, ActsAsRVMTypeSingeltonMethods

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object

Called when included, loads the class methods and the instance methods needed.



44
45
46
# File 'lib/rvm/acts_as_rvm_type.rb', line 44

def self.included(mod)
  mod.extend(RVM::ActsAsRVMType::ActsAsRVMTypeMethods)
end