!@command.info[:method].nil?

is better as

    @command.info[:method].present?