Class: Rubex::DataType::RubyMethod
- Inherits:
-
Object
- Object
- Rubex::DataType::RubyMethod
- Includes:
- Helpers
- Defined in:
- lib/rubex/data_type/ruby_method.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
-
#initialize(name, c_name, scope, arg_list) ⇒ RubyMethod
constructor
A new instance of RubyMethod.
- #ruby_method? ⇒ Boolean
Methods included from Helpers
#==, #base_type, #c_function_ptr?, #char_ptr?, #from_ruby_object, #to_ruby_object
Constructor Details
#initialize(name, c_name, scope, arg_list) ⇒ RubyMethod
Returns a new instance of RubyMethod.
9 10 11 12 13 14 15 |
# File 'lib/rubex/data_type/ruby_method.rb', line 9 def initialize(name, c_name, scope, arg_list) @name = name @c_name = c_name @scope = scope @arg_list = arg_list @type = RubyObject.new end |
Instance Attribute Details
#arg_list ⇒ Object
Returns the value of attribute arg_list.
7 8 9 |
# File 'lib/rubex/data_type/ruby_method.rb', line 7 def arg_list @arg_list end |
#c_name ⇒ Object (readonly)
Returns the value of attribute c_name.
6 7 8 |
# File 'lib/rubex/data_type/ruby_method.rb', line 6 def c_name @c_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/rubex/data_type/ruby_method.rb', line 6 def name @name end |
#scope ⇒ Object
Returns the value of attribute scope.
7 8 9 |
# File 'lib/rubex/data_type/ruby_method.rb', line 7 def scope @scope end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/rubex/data_type/ruby_method.rb', line 6 def type @type end |
Instance Method Details
#ruby_method? ⇒ Boolean
17 18 19 |
# File 'lib/rubex/data_type/ruby_method.rb', line 17 def ruby_method? true end |