Sha256: e88837574f65ed89712d1f357c698572f0f1a91d53a6b53087b5badfae090794
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
# -*- coding: utf-8 -*- ### # # Blob abstract model suitable for our # typical kinds of data files in our app. # # We can store the blob on the local file system (see BlobFile), # We can make the blob accessible via URI (see BlobURI). # We can export the blob to an external system (see BlobExport). # ### class Blob def name; @name; end def name=x; @name=x; end def initialize(options = {}) @name ||= options[:name] end def ==(other) self.name == other.name end def eql?(other) self.name.eql?(other.name) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_blob-1.0.3 | lib/sixarm_ruby_blob/base.rb |
sixarm_ruby_blob-1.0.1 | lib/sixarm_ruby_blob/base.rb |