Class: Rubex::DataType::RubyMethod

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/rubex/data_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#==, #base_type, #c_function_ptr?, #char_ptr?, #from_ruby_object, #to_ruby_object

Constructor Details

#initialize(name, c_name, scope, arg_list) ⇒ RubyMethod

Returns a new instance of RubyMethod.



648
649
650
651
# File 'lib/rubex/data_type.rb', line 648

def initialize name, c_name, scope, arg_list
  @name, @c_name, @scope, @arg_list = name, c_name, scope, arg_list
  @type = RubyObject.new
end

Instance Attribute Details

#arg_listObject

Returns the value of attribute arg_list.



646
647
648
# File 'lib/rubex/data_type.rb', line 646

def arg_list
  @arg_list
end

#c_nameObject (readonly)

Returns the value of attribute c_name.



645
646
647
# File 'lib/rubex/data_type.rb', line 645

def c_name
  @c_name
end

#nameObject (readonly)

Returns the value of attribute name.



645
646
647
# File 'lib/rubex/data_type.rb', line 645

def name
  @name
end

#scopeObject

Returns the value of attribute scope.



646
647
648
# File 'lib/rubex/data_type.rb', line 646

def scope
  @scope
end

#typeObject (readonly)

Returns the value of attribute type.



645
646
647
# File 'lib/rubex/data_type.rb', line 645

def type
  @type
end

Instance Method Details

#ruby_method?Boolean

Returns:



653
# File 'lib/rubex/data_type.rb', line 653

def ruby_method?; true; end