Class: TurboRex::MSRPC::MIDL::Parameter
- Inherits:
-
Object
- Object
- TurboRex::MSRPC::MIDL::Parameter
- Defined in:
- lib/turborex/msrpc/midl.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#data_type ⇒ Object
readonly
Returns the value of attribute data_type.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, data_type = nil) ⇒ Parameter
constructor
A new instance of Parameter.
- #is_return_type? ⇒ Boolean
- #push_attribute(attribute) ⇒ Object
- #set_data_type(type) ⇒ Object
- #type_return ⇒ Object
Constructor Details
#initialize(name, data_type = nil) ⇒ Parameter
Returns a new instance of Parameter.
68 69 70 71 72 73 |
# File 'lib/turborex/msrpc/midl.rb', line 68 def initialize(name, data_type=nil) @data_type = data_type @name = name @attributes = [] @type_return = false end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
66 67 68 |
# File 'lib/turborex/msrpc/midl.rb', line 66 def attributes @attributes end |
#data_type ⇒ Object (readonly)
Returns the value of attribute data_type.
64 65 66 |
# File 'lib/turborex/msrpc/midl.rb', line 64 def data_type @data_type end |
#name ⇒ Object
Returns the value of attribute name.
65 66 67 |
# File 'lib/turborex/msrpc/midl.rb', line 65 def name @name end |
Instance Method Details
#is_return_type? ⇒ Boolean
87 88 89 |
# File 'lib/turborex/msrpc/midl.rb', line 87 def is_return_type? @type_return end |
#push_attribute(attribute) ⇒ Object
75 76 77 |
# File 'lib/turborex/msrpc/midl.rb', line 75 def push_attribute(attribute) @attributes << attribute end |
#set_data_type(type) ⇒ Object
79 80 81 |
# File 'lib/turborex/msrpc/midl.rb', line 79 def set_data_type(type) @data_type = type end |
#type_return ⇒ Object
83 84 85 |
# File 'lib/turborex/msrpc/midl.rb', line 83 def type_return @type_return = true end |