# File lib/jekyll/tags/post_url.rb, line 39 def initialize(tag_name, post, tokens) super @orig_post = post.strip begin @post = PostComparer.new(@orig_post) rescue raise ArgumentError.new Could not parse name of post "#{@orig_post}" in tag 'post_url'.Make sure the post exists and the name is correct. end end
# File lib/jekyll/tags/post_url.rb, line 53 def render(context) site = context.registers[:site] site.posts.each do |p| if @post == p return p.url end end raise ArgumentError.new Could not find post "#{@orig_post}" in tag 'post_url'.Make sure the post exists and the name is correct. end
Generated with the Darkfish Rdoc Generator 2.