Class: Rubex::DataType::RubyClass

Inherits:
RubyConstant show all
Defined in:
lib/rubex/data_type.rb

Instance Attribute Summary collapse

Attributes inherited from RubyConstant

#type

Instance Method Summary collapse

Methods inherited from RubyConstant

#ruby_constant?

Methods inherited from RubyObject

#object?, #p_formatter, #to_s

Methods included from Helpers

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

Constructor Details

#initialize(name, c_name, scope, ancestor) ⇒ RubyClass

Returns a new instance of RubyClass.



635
636
637
# File 'lib/rubex/data_type.rb', line 635

def initialize name, c_name, scope, ancestor
  @name, @c_name, @scope, @ancestor = name, c_name, scope, ancestor
end

Instance Attribute Details

#ancestorObject (readonly)

Returns the value of attribute ancestor.



633
634
635
# File 'lib/rubex/data_type.rb', line 633

def ancestor
  @ancestor
end

#c_nameObject (readonly)

Returns the value of attribute c_name.



633
634
635
# File 'lib/rubex/data_type.rb', line 633

def c_name
  @c_name
end

#nameObject (readonly)

Returns the value of attribute name.



633
634
635
# File 'lib/rubex/data_type.rb', line 633

def name
  @name
end

#scopeObject (readonly)

Returns the value of attribute scope.



633
634
635
# File 'lib/rubex/data_type.rb', line 633

def scope
  @scope
end

Instance Method Details

#ruby_class?Boolean

Returns:



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

def ruby_class?; true; end