summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-12-28 14:07:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2011-12-28 14:07:17 +0100
commit7aad38c5a5631c1f9b9cdd579788916da14be9c8 (patch)
tree2aeaf9b601eeaee6edb0fd0a40dcd358b38cd69e /lib
parent12e2914308f8abdb6511063770ff71b8725c4f46 (diff)
downloadzorglub-7aad38c5a5631c1f9b9cdd579788916da14be9c8.zip
zorglub-7aad38c5a5631c1f9b9cdd579788916da14be9c8.tar.gz
Node: rename (before|after)_hooks with call_(before|after)_hooks
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 040e323..af29a86 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -49,7 +49,7 @@ module Zorglub
node.content
end
#
- def before_hooks obj
+ def call_before_hooks obj
Node.hooks[:before_all].each do |blk| blk.call obj end
end
#
@@ -58,7 +58,7 @@ module Zorglub
Node.hooks[:before_all].uniq!
end
#
- def after_hooks obj
+ def call_after_hooks obj
Node.hooks[:after_all].each do |blk| blk.call obj end
end
#
@@ -96,13 +96,13 @@ module Zorglub
end
#
def feed!
- Node.before_hooks self
+ Node.call_before_hooks self
@content = self.send @action[:method], *@action[:args]
e, v, l = Config.engine_proc(@action[:engine]), view, layout
# TODO compile and cache
@content = e.call v, self if e and File.exists? v
@content = e.call l, self if e and File.exists? l
- Node.after_hooks self
+ Node.call_after_hooks self
@content
end
#