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

Class Method Details

.forward(*methods) ⇒ undefined Originally defined in module DataProxy::ClassMethods

Forward provided methods to the underlaying data object

Examples:


class MyDataset
  include DataProxy

  forward(:find_all, :map)
end

Returns:

  • (undefined)

.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



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

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

    param :data
  end
end

.row_procProc Originally defined in module DataProxy::ClassMethods

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.

Default no-op tuple proc

Returns:

  • (Proc)