Sha256: d0f25e0b0fe88909dad87bc3489e32b48c3261a2da2bc011eea58c8f40563252
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
class Shortcode::Processor def process(string, configuration, additional_attributes=nil) transformer(configuration).apply parser(configuration).parse(string), additional_attributes: additional_attributes end private def parser(configuration) @parser ||= Shortcode::Parser.new(configuration) end def transformer(configuration) @transformer ||= Shortcode::Transformer.new(configuration) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shortcode-1.2.1 | lib/shortcode/processor.rb |
shortcode-1.2.0 | lib/shortcode/processor.rb |