mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
16 lines
233 B
Ruby
16 lines
233 B
Ruby
module MPDClient
|
|
module Jsonable
|
|
|
|
def self.included(receiver)
|
|
receiver.send(:include, InstanceMethods)
|
|
end
|
|
|
|
module InstanceMethods
|
|
def to_json(*args)
|
|
to_h.to_json(*args)
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|