Class: Barrister::Function

Inherits:
Object
  • Object
show all
Defined in:
lib/barrister.rb

Overview

Represents a single function on a Barrister IDL “interface”

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



866
867
868
# File 'lib/barrister.rb', line 866

def name
  @name
end

#paramsObject

Returns the value of attribute params.



866
867
868
# File 'lib/barrister.rb', line 866

def params
  @params
end

#returnsObject

Returns the value of attribute returns.



866
867
868
# File 'lib/barrister.rb', line 866

def returns
  @returns
end