Class: Rubex::DataType::CBoolean

Inherits:
Int
  • Object
show all
Defined in:
lib/rubex/data_type/int/c_boolean.rb

Instance Method Summary collapse

Methods inherited from Int

#<=>, #from_ruby_object, #int?, #p_formatter, #to_s

Methods included from Helpers

#==, #base_type, #c_function_ptr?, #char_ptr?, #from_ruby_object

Instance Method Details

#cbool?Boolean

Returns:



4
5
6
# File 'lib/rubex/data_type/int/c_boolean.rb', line 4

def cbool?
  true
end

#to_ruby_object(arg) ⇒ Object



8
9
10
# File 'lib/rubex/data_type/int/c_boolean.rb', line 8

def to_ruby_object(arg)
  Rubex::C_MACRO_INT2BOOL + '(' + arg + ')'
end