Class: Rubex::DataType::LLInt
- Inherits:
-
Object
- Object
- Rubex::DataType::LLInt
show all
- Includes:
- IntHelpers
- Defined in:
- lib/rubex/data_type/l_l_int.rb
Instance Method Summary
collapse
Methods included from Helpers
#==, #base_type, #c_function_ptr?, #char_ptr?
Instance Method Details
#from_ruby_object(arg) ⇒ Object
13
14
15
|
# File 'lib/rubex/data_type/l_l_int.rb', line 13
def from_ruby_object(arg)
"NUM2LL(#{arg})"
end
|
17
18
19
|
# File 'lib/rubex/data_type/l_l_int.rb', line 17
def llint?
true
end
|
21
22
23
|
# File 'lib/rubex/data_type/l_l_int.rb', line 21
def p_formatter
'%ll'
end
|
#to_ruby_object(arg) ⇒ Object
9
10
11
|
# File 'lib/rubex/data_type/l_l_int.rb', line 9
def to_ruby_object(arg)
"LL2NUM(#{arg})"
end
|
#to_s ⇒ Object
5
6
7
|
# File 'lib/rubex/data_type/l_l_int.rb', line 5
def to_s
'long long int'
end
|