Class DBus::FormalParameter
In: lib/dbus/introspect.rb
Parent: Object

A formal parameter has a name and a type

Methods

[]   new  

Attributes

name  [R] 
type  [R] 

Public Class methods

[Source]

# File lib/dbus/introspect.rb, line 85
    def initialize(name, type)
      @name = name
      @type = type
    end

Public Instance methods

backward compatibility, deprecated

[Source]

# File lib/dbus/introspect.rb, line 91
    def [](index)
      case index
        when 0 then name
        when 1 then type
        else nil
      end
    end

[Validate]