Class: MessagePack::IDL::IR::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/msgpack/idl/ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, scopes) ⇒ Application

Returns a new instance of Application.



400
401
402
403
# File 'lib/msgpack/idl/ir.rb', line 400

def initialize(name, scopes)
	@name = name
	@scopes = scopes
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



404
405
406
# File 'lib/msgpack/idl/ir.rb', line 404

def name
  @name
end

#scopesObject (readonly)

Returns the value of attribute scopes.



404
405
406
# File 'lib/msgpack/idl/ir.rb', line 404

def scopes
  @scopes
end

Instance Method Details

#default_scopeObject



406
407
408
# File 'lib/msgpack/idl/ir.rb', line 406

def default_scope
	@scopes.find {|c| c.default_scope? }
end