module Filigree::TypedClass

Allows the including class to define typed type checked instance variables. This also provides a default constructor.

Public Instance Methods

set_typed_ivars(vals) click to toggle source

Set each of the typed instance variables to its corresponding value.

@param [Array<Object>] vals Values to set typed variables to

@return [void]

# File lib/filigree/types.rb, line 87
def set_typed_ivars(vals)
        self.class.typed_ivars.zip(vals).each do |name, val|
                self.send("#{name}=", val)
        end
end