lib/scrapple/page.rb
# Fetch the content body and rc directives.
Fetch the content body and rc directives.
Fetch the content body and rc directives .
def fetch
      unless @fetched
        parser = Parser.new(bag.content(path)).parse
        @body = parser.body
        bag.rc_files(path).each do |rc_file|
          @rc.merge!(YAML.load(bag.content(rc_file)))
        end
        @rc.merge!(parser.rc)
        @fetched = true
      end
    end
def fetch unless @fetched parser = Parser . new ( bag . content ( path ) ) . parse @body = parser . body bag . rc_files ( path ) . each do | rc_file | @rc . merge! ( YAML . load ( bag . content ( rc_file ) ) ) end @rc . merge! ( parser . rc ) @fetched = true end end
Fetch the content body and rc directives.
Fetch the content body and rc directives .