Class: Rubex::DataType::RubyClass

Inherits:
RubyConstant show all
Defined in:
lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.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.



6
7
8
9
10
11
# File 'lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb', line 6

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

Instance Attribute Details

#ancestorObject (readonly)

Returns the value of attribute ancestor.



4
5
6
# File 'lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb', line 4

def ancestor
  @ancestor
end

#c_nameObject (readonly)

Returns the value of attribute c_name.



4
5
6
# File 'lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb', line 4

def c_name
  @c_name
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb', line 4

def name
  @name
end

#scopeObject (readonly)

Returns the value of attribute scope.



4
5
6
# File 'lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb', line 4

def scope
  @scope
end

Instance Method Details

#ruby_class?Boolean

Returns:



13
14
15
# File 'lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb', line 13

def ruby_class?
  true
end