class Barrister::Interface

Represents a Barrister IDL “interface”

Attributes

name[RW]

Public Class Methods

new(iface) click to toggle source
# File lib/barrister.rb, line 845
def initialize(iface)
  @name = iface["name"]
  @functions = { }
  iface["functions"].each do |f|
    @functions[f["name"]] = Function.new(f)
  end
end

Public Instance Methods

function(name) click to toggle source
# File lib/barrister.rb, line 857
def function(name)
  return @functions[name]
end
functions() click to toggle source
# File lib/barrister.rb, line 853
def functions
  return @functions.values
end