Class: Rubex::DataType::CFunction
- Inherits:
-
Object
- Object
- Rubex::DataType::CFunction
- Includes:
- Helpers
- Defined in:
- lib/rubex/data_type/c_function.rb
Instance Attribute Summary collapse
-
#arg_list ⇒ Object
Returns the value of attribute arg_list.
-
#c_name ⇒ Object
readonly
Returns the value of attribute c_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #c_function? ⇒ Boolean
-
#initialize(name, c_name, arg_list, type, scope) ⇒ CFunction
constructor
FIXME: all attributes should be initialized upon class creation to maintain sanity and consistency.
Methods included from Helpers
#==, #base_type, #c_function_ptr?, #char_ptr?, #from_ruby_object, #to_ruby_object
Constructor Details
#initialize(name, c_name, arg_list, type, scope) ⇒ CFunction
FIXME: all attributes should be initialized upon class creation to maintain sanity and consistency.
10 11 12 13 14 15 16 |
# File 'lib/rubex/data_type/c_function.rb', line 10 def initialize(name, c_name, arg_list, type, scope) @name = name @c_name = c_name @arg_list = arg_list @type = type @scope = scope end |
Instance Attribute Details
#arg_list ⇒ Object
Returns the value of attribute arg_list.
6 7 8 |
# File 'lib/rubex/data_type/c_function.rb', line 6 def arg_list @arg_list end |
#c_name ⇒ Object (readonly)
Returns the value of attribute c_name.
5 6 7 |
# File 'lib/rubex/data_type/c_function.rb', line 5 def c_name @c_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/rubex/data_type/c_function.rb', line 5 def name @name end |
#scope ⇒ Object
Returns the value of attribute scope.
6 7 8 |
# File 'lib/rubex/data_type/c_function.rb', line 6 def scope @scope end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/rubex/data_type/c_function.rb', line 5 def type @type end |
Instance Method Details
#c_function? ⇒ Boolean
18 19 20 |
# File 'lib/rubex/data_type/c_function.rb', line 18 def c_function? true end |