Class: Concordion::LookaheadHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/concordion/lookahead_handler.rb

Instance Method Summary collapse

Instance Method Details

#handle_lookahead(cpr, test_context, processor) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/concordion/lookahead_handler.rb', line 8

def handle_lookahead(cpr, test_context, processor)
  cpr.tag.search("/*[@]").each {|child|
    if is_element_setter?(child)
      processor.process(child, test_context)
    end
  }
end

#is_element_setter?(elem) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/concordion/lookahead_handler.rb', line 4

def is_element_setter?(elem)
  !elem.get_attribute('concordion:set').nil?
end