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, #unwrap, #val, #val=, #valid_type, #~

Constructor Details

#initializeFixedBit

Returns a new instance of FixedBit.



193
194
195
# File 'lib/primitive_wrapper.rb', line 193

def initialize
  raise "FixedBit cannot create instance"
end

Instance Method Details

#replace(other) ⇒ Object



196
197
198
# File 'lib/primitive_wrapper.rb', line 196

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