private Method

ListenerMixin.parse_pi_content(content)

Extract the first name="value" pair from content. Works with single quotes according to the constant CONTENT_PATTERN. Return a Hash.

Source Code

# File rss/parser.rb, line 347
def parse_pi_content(content)
  params = {}
  content.scan(CONTENT_PATTERN) do |name, quote, value|
    params[name] = value
  end
  params
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.