Parent

Included Modules

Files

Class Index [+]

Quicksearch

Arel::Array

Attributes

array[R]
attribute_names_and_types[R]

Public Class Methods

new(array, attribute_names_and_types) click to toggle source
    # File lib/arel/engines/memory/relations/array.rb, line 8
 8:     def initialize(array, attribute_names_and_types)
 9:       @array                     = array
10:       @attribute_names_and_types = attribute_names_and_types
11:       @engine                    = nil
12:       @attributes                = nil
13:     end

Public Instance Methods

attributes() click to toggle source
    # File lib/arel/engines/memory/relations/array.rb, line 19
19:     def attributes
20:       @attributes ||= begin
21:         attrs = @attribute_names_and_types.collect do |attribute, type|
22:           attribute = type.new(self, attribute) if Symbol === attribute
23:           attribute
24:         end
25:         Header.new(attrs)
26:       end
27:     end
engine() click to toggle source
    # File lib/arel/engines/memory/relations/array.rb, line 15
15:     def engine
16:       @engine ||= Memory::Engine.new
17:     end
eval() click to toggle source
    # File lib/arel/engines/memory/relations/array.rb, line 33
33:     def eval
34:       @array.collect { |r| Row.new(self, r) }
35:     end
format(attribute, value) click to toggle source
    # File lib/arel/engines/memory/relations/array.rb, line 29
29:     def format(attribute, value)
30:       value
31:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.