lib/polites/parser.rb
# Parse an entire sheet of content, including all its structural elements.
#
# @param [String] source
# @return [Sheet]
Parse an entire sheet of content, including all its structural elements.
Parse an entire sheet of content including all its structural elements .
def parse_sheet(source)
      sheet = Nokogiri(source).xpath('/sheet').first
      Sheet.new(
        version: sheet[:version],
        app_version: sheet[:app_version],
        markup: parse_markup(sheet),
        content: parse_fragment(sheet),
        keywords: parse_keywords(sheet),
        files: parse_files(sheet),
        notes: parse_notes(sheet)
      )
    end
def parse_sheet ( source ) sheet = Nokogiri ( source ) . xpath ( '/sheet' ) . first Sheet . new ( version : sheet [ :version ] , app_version : sheet [ :app_version ] , markup : parse_markup ( sheet ) , content : parse_fragment ( sheet ) , keywords : parse_keywords ( sheet ) , files : parse_files ( sheet ) , notes : parse_notes ( sheet ) ) end
Parse an entire sheet of content, including all its structural elements.
Parse an entire sheet of content including all its structural elements .
None
Sheet
source
<not_specific>
<not_specific>
None