module BarcodeValidation::Mixin::ValueObject

Public Class Methods

included(mod) click to toggle source
# File lib/barcodevalidation/mixin/value_object.rb, line 6
def self.included(mod)
  mod.extend ClassMethods
end

Public Instance Methods

eql?(other) click to toggle source
# File lib/barcodevalidation/mixin/value_object.rb, line 13
def eql?(other)
  object_id == other.object_id
end
inspect() click to toggle source
# File lib/barcodevalidation/mixin/value_object.rb, line 17
def inspect
  "#<#{description}>"
end
pretty_print(value) click to toggle source
# File lib/barcodevalidation/mixin/value_object.rb, line 21
def pretty_print(value)
  value.text inspect
end

Private Instance Methods

description() click to toggle source
# File lib/barcodevalidation/mixin/value_object.rb, line 27
def description
  "#{self.class}(#{self})"
end