Class: Xembly::Up
- Inherits:
-
Object
- Object
- Xembly::Up
- Defined in:
- lib/xembly/up.rb
Overview
UP directive
Instance Method Summary collapse
Instance Method Details
#exec(_, cursor) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/xembly/up.rb', line 28 def exec(_, cursor) after = [] cursor.each do |node| after.push(node.parent) end after end |