Sha256: a9431ea42bc851c562370e412f3e5ec2cfd1f831fbf6e7b9bbee6c37984477d7

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 Bytes

Contents

require "mastodon_cthulhu/version"
require "mastodon_cthulhu/convert"
require "mastodon_cthulhu/convert_random"
require "mastodon_cthulhu/convert_lang"
require "mastodon_cthulhu/statuses_controller"

module MastodonCthulhu
  def self.setup(&proc)
    # create function for Monkey patch
    extend self
    (
    class << self;
      self
    end).module_eval do
      define_method 'convert_toot', &proc
      # define_method 'b' do
      #   p 'b'
      # end
    end

    # Monkey patch
    Api::V1::StatusesController.prepend(ApiV1StatusesControllerPatch)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mastodon_cthulhu-0.1.0 lib/mastodon_cthulhu.rb