Sha256: b0e71cb2db42e51ba749f3056aa868d09b362c7cc48802555fd0f04ef98b8601

Contents?: true

Size: 408 Bytes

Versions: 12

Compression:

Stored size: 408 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-4.0.0 spec/support/parser_helper.rb
prawn-icon-3.1.0 spec/support/parser_helper.rb
prawn-icon-3.0.0 spec/support/parser_helper.rb
prawn-icon-2.5.0 spec/support/parser_helper.rb
prawn-icon-2.4.0 spec/support/parser_helper.rb
prawn-icon-2.3.0 spec/support/parser_helper.rb
prawn-icon-2.2.0 spec/support/parser_helper.rb
prawn-icon-2.1.0 spec/support/parser_helper.rb
prawn-icon-2.0.0 spec/support/parser_helper.rb
prawn-icon-1.4.0 spec/support/parser_helper.rb
prawn-icon-1.3.0 spec/support/parser_helper.rb
prawn-icon-1.2.0 spec/support/parser_helper.rb