Sha256: dc6c4a420b97642617fbb85d76ca627aaffc49138533313a62e57d7f88822e82
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
require "mastodon_cthulhu/version" require "mastodon_cthulhu/convert" require "mastodon_cthulhu/convert_random" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mastodon_cthulhu-0.1.2 | lib/mastodon_cthulhu.rb |
mastodon_cthulhu-0.1.1 | lib/mastodon_cthulhu.rb |