Sha256: 1de4304b021a48814879c4e44cd281421202054e8fc8ba8ecae27d5d66493b99
Contents?: true
Size: 559 Bytes
Versions: 31
Compression:
Stored size: 559 Bytes
Contents
# frozen_string_literal: true module Torque module PostgreSQL module Attributes class Lazy < BasicObject def initialize(klass, *values) @klass, @values = klass, values end def ==(other) other.nil? end def nil? true end def inspect 'nil' end def __class__ Lazy end def method_missing(name, *args, &block) @klass.new(*@values).send(name, *args, &block) end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems