Sha256: e57875b451c2d69d7a35ea08e2260e177ef168ed7440dbe23329a17951a613f2

Contents?: true

Size: 407 Bytes

Versions: 12

Compression:

Stored size: 407 Bytes

Contents

# encoding: utf-8
#
# Copyright October 2014, Jesse Doyle. All rights reserved.
#
# This is free software. Please see the LICENSE and COPYING files for details.

module ParserHelper
  def tokenize_string(string)
    regex = Prawn::Icon::Parser::PARSER_REGEX
    string.scan(regex)
  end

  def contentize_string(string)
    regex = Prawn::Icon::Parser::CONTENT_REGEX
    string.scan(regex).flatten
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
prawn-icon-1.1.1 spec/support/parser_helper.rb
prawn-icon-1.1.0 spec/support/parser_helper.rb
prawn-icon-1.0.0 spec/support/parser_helper.rb
prawn-icon-0.7.1 spec/support/parser_helper.rb
prawn-icon-0.7.0 spec/support/parser_helper.rb
prawn-icon-0.6.4 spec/support/parser_helper.rb
prawn-icon-0.6.3 spec/support/parser_helper.rb
prawn-icon-0.6.2 spec/support/parser_helper.rb
prawn-icon-0.6.1 spec/support/parser_helper.rb
prawn-icon-0.6.0 spec/support/parser_helper.rb
prawn-icon-0.5.1 spec/support/parser_helper.rb
prawn-icon-0.5.0 spec/support/parser_helper.rb