class RCGTK::IntType
An integer of an arbitrary width.
Public Class Methods
new(width, context = nil)
click to toggle source
@param [Integer] width Width of new integer type. @param [Context] context Context
in which to create the type.
@raise [RuntimeError] Raises an error when width is <= 0.
# File lib/rcgtk/type.rb, line 158 def initialize(width, context = nil) if width > 0 @ptr = if context Bindings.get_int_type_in_context(width, check_type(context, Context, 'context')) else Bidnings.get_int_type(width) end else raise 'The width parameter must be greater then 0.' end end
Public Instance Methods
value_class()
click to toggle source
Overrides {NumberType#value_class}.
@raise [RuntimeError] This function has no meaning in this class.
# File lib/rcgtk/type.rb, line 174 def value_class raise 'The RLKT::CG::IntType class has no value class.' end