Sha256: 05518021b61d494ab6efe2ce9825e8f7530bbf24fe80f5c3c649a380bd94b3af
Contents?: true
Size: 421 Bytes
Versions: 8
Compression:
Stored size: 421 Bytes
Contents
module Praxis SimpleMediaType = Struct.new(:identifier) do def name self.class.name end def ===(other_thing) case other_thing when String identifier == other_thing when MediaType identifier == other_thing.identifier else raise 'can not compare' end end def describe(shallow=true) {identifier: identifier} end end end
Version data entries
8 entries across 8 versions & 1 rubygems