Module: ROM::ArrayDataset

Extended by:
DataProxy::ClassMethods
Includes:
EnumerableDataset
Included in:
Memory::Dataset
Defined in:
lib/rom/array_dataset.rb

Overview

A helper module that adds data-proxy behavior to an array-like object

See Also:

Class Method Summary collapse

Methods included from DataProxy::ClassMethods

forward, row_proc

Class Method Details

.included(klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Extends the class with data-proxy behavior



17
18
19
20
21
22
23
24
# File 'lib/rom/array_dataset.rb', line 17

def self.included(klass)
  klass.class_eval do
    extend Initializer
    include DataProxy

    param :data
  end
end