Class: Rubex::DataType::CStructOrUnion
- Inherits:
-
Object
- Object
- Rubex::DataType::CStructOrUnion
- Includes:
- Helpers
- Defined in:
- lib/rubex/data_type/c_struct_or_union.rb
Instance Attribute Summary collapse
-
#c_name ⇒ Object
readonly
Returns the value of attribute c_name.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(kind, name, c_name, scope) ⇒ CStructOrUnion
constructor
A new instance of CStructOrUnion.
- #struct_or_union? ⇒ Boolean
- #to_s ⇒ Object
Methods included from Helpers
#==, #base_type, #c_function_ptr?, #char_ptr?, #from_ruby_object, #to_ruby_object
Constructor Details
#initialize(kind, name, c_name, scope) ⇒ CStructOrUnion
Returns a new instance of CStructOrUnion.
7 8 9 10 11 12 |
# File 'lib/rubex/data_type/c_struct_or_union.rb', line 7 def initialize(kind, name, c_name, scope) @kind = kind @name = name @c_name = c_name @scope = scope end |
Instance Attribute Details
#c_name ⇒ Object (readonly)
Returns the value of attribute c_name.
5 6 7 |
# File 'lib/rubex/data_type/c_struct_or_union.rb', line 5 def c_name @c_name end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
5 6 7 |
# File 'lib/rubex/data_type/c_struct_or_union.rb', line 5 def kind @kind end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/rubex/data_type/c_struct_or_union.rb', line 5 def name @name end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
5 6 7 |
# File 'lib/rubex/data_type/c_struct_or_union.rb', line 5 def scope @scope end |
Instance Method Details
#struct_or_union? ⇒ Boolean
14 15 16 |
# File 'lib/rubex/data_type/c_struct_or_union.rb', line 14 def struct_or_union? true end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/rubex/data_type/c_struct_or_union.rb', line 18 def to_s @c_name.to_s end |