Class: DBus::FormalParameter
- Inherits:
-
Object
- Object
- DBus::FormalParameter
show all
- Defined in:
- lib/dbus/introspect.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
126
127
128
129
|
# File 'lib/dbus/introspect.rb', line 126
def initialize(name, type)
@name = name
@type = type
end
|
Instance Attribute Details
#name ⇒ #to_s
122
123
124
|
# File 'lib/dbus/introspect.rb', line 122
def name
@name
end
|
124
125
126
|
# File 'lib/dbus/introspect.rb', line 124
def type
@type
end
|
Instance Method Details
#[](index) ⇒ Object
backward compatibility, deprecated
132
133
134
135
136
137
|
# File 'lib/dbus/introspect.rb', line 132
def [](index)
case index
when 0 then name
when 1 then type
end
end
|