Sha256: 407003ef12fba36961e6f004ee5f257abc181967a50f632678bd6f0847411493

Contents?: true

Size: 340 Bytes

Versions: 3

Compression:

Stored size: 340 Bytes

Contents

module MastodonCthulhu
    class Convert
      attr_accessor :pattern
      attr_accessor :replaces
  
      def initialize(pattern, replaces)
        @pattern = pattern
        @replaces = replaces
      end
  
      def match(input)
        input.match(@pattern)
      end
  
      def convert(input)
        input
      end
    end
  end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mastodon_cthulhu-0.1.2 lib/mastodon_cthulhu/convert.rb
mastodon_cthulhu-0.1.1 lib/mastodon_cthulhu/convert.rb
mastodon_cthulhu-0.1.0 lib/mastodon_cthulhu/convert.rb