Class: MessagePack::IDL::IR::Scope

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, service, version, default) ⇒ Scope

Returns a new instance of Scope.



412
413
414
415
416
417
# File 'lib/msgpack/idl/ir.rb', line 412

def initialize(name, service, version, default)
	@name = name
	@service = service
	@version = version
	@default = default
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



418
419
420
# File 'lib/msgpack/idl/ir.rb', line 418

def name
  @name
end

#serviceObject (readonly)

Returns the value of attribute service.



418
419
420
# File 'lib/msgpack/idl/ir.rb', line 418

def service
  @service
end

#versionObject (readonly)

Returns the value of attribute version.



418
419
420
# File 'lib/msgpack/idl/ir.rb', line 418

def version
  @version
end

Instance Method Details

#default_scope?Boolean

Returns:

  • (Boolean)


420
421
422
# File 'lib/msgpack/idl/ir.rb', line 420

def default_scope?
	@default
end