Class: Rubex::DataType::RubyClass
- Inherits:
-
RubyConstant
- Object
- RubyObject
- RubyConstant
- Rubex::DataType::RubyClass
- Defined in:
- lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb
Instance Attribute Summary collapse
-
#ancestor ⇒ Object
readonly
Returns the value of attribute ancestor.
-
#c_name ⇒ Object
readonly
Returns the value of attribute c_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Attributes inherited from RubyConstant
Instance Method Summary collapse
-
#initialize(name, c_name, scope, ancestor) ⇒ RubyClass
constructor
A new instance of RubyClass.
- #ruby_class? ⇒ Boolean
Methods inherited from RubyConstant
Methods inherited from RubyObject
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
#ancestor ⇒ Object (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_name ⇒ Object (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 |
#name ⇒ Object (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 |
#scope ⇒ Object (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
13 14 15 |
# File 'lib/rubex/data_type/ruby_object/ruby_constant/ruby_class.rb', line 13 def ruby_class? true end |