Class: Rubex::DataType::CStr
- Inherits:
-
Object
- Object
- Rubex::DataType::CStr
show all
- Includes:
- Helpers
- Defined in:
- lib/rubex/data_type/c_str.rb
Instance Method Summary
collapse
Methods included from Helpers
#==, #base_type, #c_function_ptr?, #char_ptr?
Instance Method Details
6
7
8
|
# File 'lib/rubex/data_type/c_str.rb', line 6
def cstr?
true
end
|
#from_ruby_object(arg) ⇒ Object
14
15
16
|
# File 'lib/rubex/data_type/c_str.rb', line 14
def from_ruby_object(arg)
"StringValueCStr(#{arg})"
end
|
10
11
12
|
# File 'lib/rubex/data_type/c_str.rb', line 10
def p_formatter
'%s'
end
|
#to_ruby_object(arg) ⇒ Object
18
19
20
|
# File 'lib/rubex/data_type/c_str.rb', line 18
def to_ruby_object(arg)
"rb_str_new_cstr(#{arg})"
end
|