Method: HomeAssistant::Generator::Component#method_missing
- Defined in:
- lib/home_assistant/generator/component.rb
#method_missing(name, *args) ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/home_assistant/generator/component.rb', line 22 def method_missing(name, *args) super unless args.one? properties[name.to_sym] = case args.first when Symbol args.first.to_s else args.first end end |