lib/jabber_admin.rb in jabber_admin-0.2.0 vs lib/jabber_admin.rb in jabber_admin-1.0.0

- old
+ new

@@ -82,17 +82,14 @@ # it is present) # # @param method [Symbol, String, #to_s] the name of the command to run # @param args all additional payload to pass down to the API call # @return [RestClient::Response] the actual response of the command - # - # rubocop:disable Style/MethodMissing we support all given methods def self.method_missing(method, *args) predefined_command(method).call(predefined_callable(method), *args) rescue NameError predefined_callable(method).call(method.to_s.chomp('!'), *args) end - # rubocop:enable Style/MethodMissing # Try to find the given name as a predefined command. When there is no such # predefined command, we raise a +NameError+. # # @param name [Symbol, String, #to_s] the command name to lookup