Class: Tlux::Config::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/tlux/config/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sessionObject (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