class Relaxo::Model::Properties::ArrayOf

Public Class Methods

[](klass) click to toggle source
# File lib/relaxo/model/properties/composite.rb, line 111
def self.[] klass
        self.new(klass)
end
new(klass) click to toggle source
# File lib/relaxo/model/properties/composite.rb, line 115
def initialize(klass)
        @klass = Attribute.new(klass)
end

Public Instance Methods

convert_from_primative(dataset, value) click to toggle source
# File lib/relaxo/model/properties/composite.rb, line 125
def convert_from_primative(dataset, value)
        value.collect do |item|
                @klass.convert_from_primative(dataset, item)
        end
end
convert_to_primative(value) click to toggle source
# File lib/relaxo/model/properties/composite.rb, line 119
def convert_to_primative(value)
        value.collect do |item|
                @klass.convert_to_primative(item)
        end
end