Sha256: edb3ce072d4f944e45ae85c53366f9ebbff39205839c87dfe2704e16914c3f61

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

module Pione
  module Model
    class UndefinedValue < BasicModel
      set_pione_model_type TypeUndefinedValue

      def ==(other)
        return other.kind_of?(UndefinedValue)
      end

      alias :eql? :"=="

      def hash
        0
      end

      #
      # pione model method
      #
      define_pione_method("as_string", [], TypeString) do |rec|
        PioneString.new("undefined")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pione-0.1.3 lib/pione/model/undefined-value.rb
pione-0.1.2 lib/pione/model/undefined-value.rb
pione-0.1.1 lib/pione/model/undefined-value.rb
pione-0.1.0 lib/pione/model/undefined-value.rb