class HomeAssistant::Generator::Generator
The basic generator for hass config
Public Class Methods
new(file_path)
click to toggle source
# File lib/home_assistant/generator.rb, line 9 def initialize(file_path) @file_path = file_path end
Public Instance Methods
config!()
click to toggle source
# File lib/home_assistant/generator.rb, line 13 def config! DSL.new.tap do |dsl| dsl.eval(@file_path) end.to_s end