Class: Barrister::Function
- Inherits:
-
Object
- Object
- Barrister::Function
- Defined in:
- lib/barrister.rb
Overview
Represents a single function on a Barrister IDL “interface”
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#params ⇒ Object
Returns the value of attribute params.
-
#returns ⇒ Object
Returns the value of attribute returns.
Instance Method Summary collapse
-
#initialize(f) ⇒ Function
constructor
A new instance of Function.
Constructor Details
#initialize(f) ⇒ Function
Returns a new instance of Function.
868 869 870 871 872 |
# File 'lib/barrister.rb', line 868 def initialize(f) @name = f["name"] @returns = f["returns"] @params = f["params"] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
866 867 868 |
# File 'lib/barrister.rb', line 866 def name @name end |
#params ⇒ Object
Returns the value of attribute params.
866 867 868 |
# File 'lib/barrister.rb', line 866 def params @params end |
#returns ⇒ Object
Returns the value of attribute returns.
866 867 868 |
# File 'lib/barrister.rb', line 866 def returns @returns end |