Module: Denko::Behaviors::Lifecycle
- Included in:
- AnalogIO::ADS1100, AnalogIO::ADS1115, AnalogIO::ADS1118, AnalogIO::Input, AnalogIO::Joystick, AnalogIO::Output, BusPeripheral, BusPeripheralAddressed, Callbacks, InputPin, MultiPin, OutputPin, Reader, State, DigitalIO::CBitBang, DigitalIO::Input, DigitalIO::Output, DigitalIO::PCF8574, DigitalIO::RotaryEncoder, Display::HD44780, Display::IL0373, Display::MonoOLED, Display::PCD8544, Display::SSD168X, Display::ST7302, Display::ST7565, I2C::BitBang, I2C::Bus, I2C::BusCommon, I2C::Peripheral, LED::APA102, LED::SevenSegment, LED::WS2812, Motor::A3967, Motor::L298, Motor::Servo, OneWire::Bus, PulseIO::Buzzer, PulseIO::IROutput, PulseIO::PWMOutput, SPI::BaseRegister, SPI::BitBang, SPI::ChipSelect, SPI::InputRegister, SPI::OutputRegister, SPI::Peripheral, Sensor::AHT1X, Sensor::BME280, Sensor::BMP180, Sensor::DHT, Sensor::DS18B20, Sensor::HCSR04, Sensor::HDC1080, Sensor::HTU21D, Sensor::HTU31D, Sensor::JSNSR04T, Sensor::QMP6988, Sensor::SHT3X, Sensor::SHT4X, Sensor::VL53L0X, UART::BitBang, UART::Hardware, UART::UARTRxPin
- Defined in:
- lib/denko/behaviors/lifecycle.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- CALLBACK_METHODS =
[:before_initialize, :after_initialize]
Class Method Summary collapse
-
.included(base) ⇒ Object
Callback hook DSL for setup work in including classes.
Class Method Details
.included(base) ⇒ Object
Callback hook DSL for setup work in including classes. include(Component) in final classes to get callbacks methods.
8 |
# File 'lib/denko/behaviors/lifecycle.rb', line 8 def self.included(base); base.extend ClassMethods; end |