Class: Bits::BitReference
- Inherits:
-
Object
- Object
- Bits::BitReference
- Defined in:
- lib/bits/bit_declaration.rb
Instance Attribute Summary collapse
-
#atom ⇒ Object
readonly
Returns the value of attribute atom.
Instance Method Summary collapse
-
#initialize(atom) ⇒ BitReference
constructor
A new instance of BitReference.
- #to_s ⇒ Object
Constructor Details
#initialize(atom) ⇒ BitReference
Returns a new instance of BitReference.
7 8 9 |
# File 'lib/bits/bit_declaration.rb', line 7 def initialize(atom) @atom = atom end |
Instance Attribute Details
#atom ⇒ Object (readonly)
Returns the value of attribute atom.
5 6 7 |
# File 'lib/bits/bit_declaration.rb', line 5 def atom @atom end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/bits/bit_declaration.rb', line 11 def to_s "<BitReference '#{@atom}'>" end |