module Koyaaan

Constants

VERSION

Public Class Methods

setup(&proc) click to toggle source
# File lib/Koyaaan.rb, line 7
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