Class: FixedBit
Instance Method Summary collapse
-
#initialize ⇒ FixedBit
constructor
A new instance of FixedBit.
- #replace(other) ⇒ Object
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
#initialize ⇒ FixedBit
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 |