Class: Epitome::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/epitome/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Document

Returns a new instance of Document.



8
9
10
11
# File 'lib/epitome/document.rb', line 8

def initialize(text)
  @id = SecureRandom.uuid
  @text = Scalpel.cut text
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/epitome/document.rb', line 6

def id
  @id
end

#textObject (readonly)

Returns the value of attribute text.



7
8
9
# File 'lib/epitome/document.rb', line 7

def text
  @text
end