Class: DBus::FormalParameter
- Inherits:
-
Object
- Object
- DBus::FormalParameter
- Defined in:
- lib/dbus/introspect.rb
Overview
A formal parameter has a name and a type
Instance Attribute Summary collapse
- #name ⇒ #to_s readonly
- #type ⇒ SingleCompleteType readonly
Instance Method Summary collapse
-
#[](index) ⇒ Object
backward compatibility, deprecated.
-
#initialize(name, type) ⇒ FormalParameter
constructor
A new instance of FormalParameter.
Constructor Details
#initialize(name, type) ⇒ FormalParameter
Returns a new instance of FormalParameter.
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 (readonly)
122 123 124 |
# File 'lib/dbus/introspect.rb', line 122 def name @name end |
#type ⇒ SingleCompleteType (readonly)
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 |