Class: TurboRex::MSRPC::MIDL::Procedure
- Inherits:
-
Object
- Object
- TurboRex::MSRPC::MIDL::Procedure
- Defined in:
- lib/turborex/msrpc/midl.rb
Instance Attribute Summary collapse
-
#arity ⇒ Object
readonly
Returns the value of attribute arity.
-
#name ⇒ Object
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#proc_num ⇒ Object
readonly
Returns the value of attribute proc_num.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(proc_num) ⇒ Procedure
constructor
A new instance of Procedure.
- #push_param(param) ⇒ Object
- #set_return_type(type) ⇒ Object
- #typedefs ⇒ Object
Constructor Details
#initialize(proc_num) ⇒ Procedure
Returns a new instance of Procedure.
41 42 43 44 45 46 47 |
# File 'lib/turborex/msrpc/midl.rb', line 41 def initialize(proc_num) @proc_num = proc_num @name = "Proc#{proc_num}" @params = [] @return_type = nil @arity = 0 end |
Instance Attribute Details
#arity ⇒ Object (readonly)
Returns the value of attribute arity.
39 40 41 |
# File 'lib/turborex/msrpc/midl.rb', line 39 def arity @arity end |
#name ⇒ Object
Returns the value of attribute name.
36 37 38 |
# File 'lib/turborex/msrpc/midl.rb', line 36 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
37 38 39 |
# File 'lib/turborex/msrpc/midl.rb', line 37 def params @params end |
#proc_num ⇒ Object (readonly)
Returns the value of attribute proc_num.
35 36 37 |
# File 'lib/turborex/msrpc/midl.rb', line 35 def proc_num @proc_num end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
38 39 40 |
# File 'lib/turborex/msrpc/midl.rb', line 38 def return_type @return_type end |
Instance Method Details
#push_param(param) ⇒ Object
49 50 51 52 |
# File 'lib/turborex/msrpc/midl.rb', line 49 def push_param(param) @params << param @arity += 1 end |
#set_return_type(type) ⇒ Object
54 55 56 |
# File 'lib/turborex/msrpc/midl.rb', line 54 def set_return_type(type) @return_type = type end |
#typedefs ⇒ Object
58 59 60 |
# File 'lib/turborex/msrpc/midl.rb', line 58 def typedefs end |