summaryrefslogtreecommitdiff
path: root/lib/oxidized/nodes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/nodes.rb')
-rw-r--r--lib/oxidized/nodes.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb
index 3e58348..e5e87e5 100644
--- a/lib/oxidized/nodes.rb
+++ b/lib/oxidized/nodes.rb
@@ -31,9 +31,15 @@ module Oxidized
delete_at i if i
end
# @param node [String] name of the node moved into the head of array
- def next node
+ def next node, opt={}
+ require 'pp'
n = del node
- put n if n
+ if n
+ n.user = opt['user']
+ n.msg = opt['msg']
+ n.from = opt['from']
+ put n
+ end
end
alias :top :next
# @return [String] node from the head of the array