Class: Tlux::Config::Generator
- Inherits:
-
Object
- Object
- Tlux::Config::Generator
- Defined in:
- lib/tlux/config/generator.rb
Instance Attribute Summary collapse
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
- #generate! ⇒ Object
-
#initialize(session) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(session) ⇒ Generator
Returns a new instance of Generator.
7 8 9 |
# File 'lib/tlux/config/generator.rb', line 7 def initialize(session) @session = session end |
Instance Attribute Details
#session ⇒ Object (readonly)
Returns the value of attribute session.
5 6 7 |
# File 'lib/tlux/config/generator.rb', line 5 def session @session end |
Instance Method Details
#generate! ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/tlux/config/generator.rb', line 11 def generate! name = session.name windows = session.windows dir = session.dir template.result(binding) end |