Class: MessagePack::IDL::IR::InheritedFunction

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

Instance Attribute Summary collapse

Attributes inherited from Function

#args, #exceptions, #max_id, #max_required_id, #name, #return_type

Instance Method Summary collapse

Methods inherited from Function

#[], #super_class

Constructor Details

#initialize(inherit_version, inherit_func) ⇒ InheritedFunction

Returns a new instance of InheritedFunction.



384
385
386
387
388
# File 'lib/msgpack/idl/ir.rb', line 384

def initialize(inherit_version, inherit_func)
	super(inherit_func.name, inherit_func.return_type, inherit_func.args, inherit_func.exceptions)
	@inherit_version = inherit_version
	@inherit_func = inherit_func
end

Instance Attribute Details

#inherit_funcObject (readonly)

Returns the value of attribute inherit_func.



389
390
391
# File 'lib/msgpack/idl/ir.rb', line 389

def inherit_func
  @inherit_func
end

#inherit_versionObject (readonly)

Returns the value of attribute inherit_version.



389
390
391
# File 'lib/msgpack/idl/ir.rb', line 389

def inherit_version
  @inherit_version
end

Instance Method Details

#inherited?Boolean

Returns:

  • (Boolean)


391
392
393
# File 'lib/msgpack/idl/ir.rb', line 391

def inherited?
	true
end