Module: DoublebyteCharactify
- Defined in:
- lib/doublebyte_charactify.rb,
lib/doublebyte_charactify/convert.rb,
lib/doublebyte_charactify/version.rb
Defined Under Namespace
Classes: Converter
Constant Summary collapse
- VERSION =
"1.1.0"
Class Method Summary collapse
Class Method Details
.setup(&proc) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/doublebyte_charactify.rb', line 7 def self.setup(&proc) # create function for Monkey patch extend self ( class << self; self end).module_eval do define_method 'convert_content', &proc # define_method 'b' do # p 'b' # end end # Monkey patch REST::StatusSerializer.prepend(RESTStatusSerializerPatch) ActivityPub::NoteSerializer.prepend(ActivityPubNoteSerializerPatch) end |