Sha256: ed27308d6ca5cf2bd8198c9e7a7cf9f7663f56d322c625baf56e805a4389b32a

Contents?: true

Size: 220 Bytes

Versions: 6

Compression:

Stored size: 220 Bytes

Contents

require "scalpel"
require "securerandom"

module Epitome
  class Document
    attr_reader :id
    attr_reader :text
    def initialize(text)
      @id = SecureRandom.uuid
      @text = Scalpel.cut text
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
epitome-0.3.1 lib/epitome/document.rb
epitome-0.3.0 lib/epitome/document.rb
epitome-0.2.3 lib/epitome/document.rb
epitome-0.2.2 lib/epitome/document.rb
epitome-0.2.1 lib/epitome/document.rb
epitome-0.2.0 lib/epitome/document.rb