Module: Humpyard::UriParser

Defined in:
lib/humpyard/uri_parser.rb,
lib/humpyard/uri_parser/pages_uri_parser.rb,
lib/humpyard/uri_parser/assets_uri_parser.rb

Defined Under Namespace

Classes: AssetsUriParser, PagesUriParser

Class Method Summary collapse

Class Method Details

.parsersObject



4
5
6
# File 'lib/humpyard/uri_parser.rb', line 4

def parsers
  @parsers ||= [::Humpyard::UriParser::PagesUriParser, ::Humpyard::UriParser::AssetsUriParser]
end

.substitute(content, options = {}) ⇒ Object



8
9
10
11
12
13
# File 'lib/humpyard/uri_parser.rb', line 8

def substitute content, options = {}
  parsers.each do |parser|
    content = parser.substitute content, options
  end
  return content
end