Module: Denko::Behaviors::BusPeripheralAddressed
Instance Attribute Summary
#address
Attributes included from Component
#board
Instance Method Summary
collapse
#atomically
Methods included from Component
#initialize, #micro_delay
Methods included from State
#initialize, #state
Instance Method Details
#before_initialize(options = {}) ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/denko/behaviors/bus_peripheral_addressed.rb', line 6
def before_initialize(options={})
@address = options[:address] if options[:address]
raise ArgumentError, "missing address for #{self}. Try Bus#search first" unless @address
super(options)
end
|