lib/anemone/core.rb
#
# Add a block to be executed on Page objects with a URL matching
# one or more patterns
#
Add a block to be executed on Page objects with a URL matching
one or more patterns
Add a block to be executed on Page objects with a URL matching one or more patterns
def on_pages_like(*patterns, &block)
      if patterns
        patterns.each do |pattern|
          @on_pages_like_blocks[pattern] << block
        end
      end
      self
    end
def on_pages_like ( * patterns , & block ) if patterns patterns . each do | pattern | @on_pages_like_blocks [ pattern ] << block end end self end
Add a block to be executed on Page objects with a URL matching
one or more patterns
Add a block to be executed on Page objects with a URL matching one or more patterns
patterns
<not_specific>
block
<not_specific>