Sha256: 73cd88362f8cbffdd14e2d911a0b28fc8042478718657c5084497993ea5ab6e1

Contents?: true

Size: 331 Bytes

Versions: 51

Compression:

Stored size: 331 Bytes

Contents

class Shortcode::Processor

  def process(string, additional_attributes=nil)
    transformer.apply parser.parse(string), additional_attributes: additional_attributes
  end

  private

    def parser
      @parser ||= Shortcode::Parser.new
    end

    def transformer
      @transformer ||= Shortcode::Transformer.new
    end

end

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
virgo-0.3.17 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.16 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.15 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.14 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.13 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.12 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.11 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.10 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.9 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.8 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.7 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.6 vendor/gems/shortcode/lib/shortcode/processor.rb
shortcode-1.1.1 lib/shortcode/processor.rb
virgo-0.3.4 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.3 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.2 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3.1 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.3 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.2.9 vendor/gems/shortcode/lib/shortcode/processor.rb
virgo-0.2.8 vendor/gems/shortcode/lib/shortcode/processor.rb