Skip to content

Commit

Permalink
Added history support for String
Browse files Browse the repository at this point in the history
  • Loading branch information
delano committed Jul 1, 2009
1 parent a6a7a45 commit 881cc0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/gibbler/history.rb
Expand Up @@ -53,7 +53,7 @@ def gibble_revert

end

class Hash
class Gibbler::Hash
def gibble_revert
raise "No history (#{self.class})" unless has_history?
@@mutex.synchronize {
Expand All @@ -65,7 +65,7 @@ def gibble_revert
end
end

class Array
class Gibbler::Array
def gibble_revert
raise "No history (#{self.class})" unless has_history?
@@mutex.synchronize {
Expand All @@ -77,7 +77,7 @@ def gibble_revert
end
end

class String
class Gibbler::String
def gibble_revert
raise "No history (#{self.class})" unless has_history?
@@mutex.synchronize {
Expand Down
1 change: 0 additions & 1 deletion tryouts/50_history_tryouts.rb
Expand Up @@ -117,7 +117,6 @@ class ::String
a.gibble_revert
end


end


0 comments on commit 881cc0a

Please sign in to comment.