File: api_options.rb

package info (click to toggle)
ruby-dbus 0.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 520 kB
  • sloc: ruby: 3,786; sh: 53; makefile: 8
file content (24 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This file is part of the ruby-dbus project
# Copyright (C) 2016 Martin Vidner
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License, version 2.1 as published by the Free Software Foundation.
# See the file "COPYING" for the exact licensing terms.

module DBus
  class ApiOptions
    # https://github.com/mvidner/ruby-dbus/issues/30
    attr_accessor :proxy_method_returns_array

    A0 = ApiOptions.new
    A0.proxy_method_returns_array = true
    A0.freeze

    A1 = ApiOptions.new
    A1.proxy_method_returns_array = false
    A1.freeze

    CURRENT = A1
  end
end