Class: FixedBit

Inherits:
Bit show all
Defined in:
lib/primitive_wrapper.rb

Direct Known Subclasses

FalseW, Null, TrueW

Instance Method Summary collapse

Methods inherited from Bit

#!, #&, #^, #to_i, #to_int, #valid_type, #|

Methods inherited from Bool

#!, #&, #^, #to_i, #to_int, #valid_type, #|

Methods inherited from Value

#!=, #==, #ensure_valid, #freeze, freeze_raise?, ignore_on_freeze, #inspect, #prim_value, raise_on_freeze, #to_s, #to_wrapper, #type, #type_of?, #unwrap, #val, #val=, #valid_type, #wrapped?, #~

Constructor Details

#initializeFixedBit

Returns a new instance of FixedBit.



297
298
299
# File 'lib/primitive_wrapper.rb', line 297

def initialize
  raise "FixedBit cannot create instance"
end

Instance Method Details

#replace(other) ⇒ Object



300
301
302
# File 'lib/primitive_wrapper.rb', line 300

def replace(other)
  raise "can't assign primitive type"
end