Sha256: 1adcbc402244ab3a495f0e77c626a5ad03bb7643a0954a1005099449fc62f56e
Contents?: true
Size: 476 Bytes
Versions: 15
Compression:
Stored size: 476 Bytes
Contents
module Rmpd module Commands private def self.simple_command(name, args={}) command = Proc.new do |*a, &block| # if args.include?(:min_version) # server_version_at_least(*args[:min_version]) # end Command.new(name.to_s.gsub(/^_*/, "")).execute(mpd, *a, &block) end send(:define_method, name, &command) end def quote(args) args.collect {|arg| "\"#{arg.to_s.gsub(/"/, "\\\"")}\""} end end end
Version data entries
15 entries across 15 versions & 1 rubygems