Sha256: 2dea61000f7ab31c85fd0fea5506e05b3ad158abd89e2c90ef55edbd39ed50e5

Contents?: true

Size: 241 Bytes

Versions: 10

Compression:

Stored size: 241 Bytes

Contents

module Ohm
  module Boundaries
    def self.included(base)
      base.extend ClassMethods
    end

    module ClassMethods
      def first
        all.first
      end

      def last
        self[db.get(key(:id))]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ohm-contrib-0.0.14 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.13 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.12 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.11 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.10 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.9 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.8 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.7 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.6 lib/ohm/contrib/boundaries.rb
ohm-contrib-0.0.5 lib/ohm/contrib/boundaries.rb