Class: AxiTdl::EthernetStreamDefAtom
- Inherits:
-
Object
- Object
- AxiTdl::EthernetStreamDefAtom
- Defined in:
- lib/tdl/exlib/axis_eth_ex.rb
Instance Method Summary collapse
- #-(str) ⇒ Object
-
#initialize(belong_to_module: nil, stream: nil, start: 0, length: 32) ⇒ EthernetStreamDefAtom
constructor
A new instance of EthernetStreamDefAtom.
Constructor Details
#initialize(belong_to_module: nil, stream: nil, start: 0, length: 32) ⇒ EthernetStreamDefAtom
Returns a new instance of EthernetStreamDefAtom.
5 6 7 8 9 10 |
# File 'lib/tdl/exlib/axis_eth_ex.rb', line 5 def initialize(belong_to_module: nil, stream: nil, start: 0, length: 32) @belong_to_module = belong_to_module @stream = stream @start = start @length = length end |
Instance Method Details
#-(str) ⇒ Object
12 13 14 |
# File 'lib/tdl/exlib/axis_eth_ex.rb', line 12 def -(str) @stream.x_all_bits_slice(name: str.to_s ,start: @start, length: @length) end |