Class: Markout::History
- Inherits:
-
Object
- Object
- Markout::History
- Defined in:
- lib/markout/history.rb
Instance Attribute Summary collapse
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
-
#revisions ⇒ Object
readonly
Returns the value of attribute revisions.
Instance Method Summary collapse
-
#initialize(document, options = {}) ⇒ History
constructor
A new instance of History.
Constructor Details
#initialize(document, options = {}) ⇒ History
Returns a new instance of History.
7 8 9 10 11 12 13 |
# File 'lib/markout/history.rb', line 7 def initialize(document, ={}) @document = document @options = load_repository load_revisions # puts @revisions.first.inspect end |
Instance Attribute Details
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
6 7 8 |
# File 'lib/markout/history.rb', line 6 def repo @repo end |
#revisions ⇒ Object (readonly)
Returns the value of attribute revisions.
6 7 8 |
# File 'lib/markout/history.rb', line 6 def revisions @revisions end |