class Torque::PostgreSQL::Attributes::Lazy

Public Class Methods

new(klass, *values) click to toggle source
# File lib/torque/postgresql/attributes/lazy.rb, line 8
def initialize(klass, *values)
  @klass, @values = klass, values
end

Public Instance Methods

==(other) click to toggle source
# File lib/torque/postgresql/attributes/lazy.rb, line 12
def ==(other)
  other.nil?
end
__class__() click to toggle source
# File lib/torque/postgresql/attributes/lazy.rb, line 24
def __class__
  Lazy
end
inspect() click to toggle source
# File lib/torque/postgresql/attributes/lazy.rb, line 20
def inspect
  'nil'
end
method_missing(name, *args, &block) click to toggle source
# File lib/torque/postgresql/attributes/lazy.rb, line 28
def method_missing(name, *args, &block)
  @klass.new(*@values).send(name, *args, &block)
end
nil?() click to toggle source
# File lib/torque/postgresql/attributes/lazy.rb, line 16
def nil?
  true
end