Class: Tara::Executable

Inherits:
Object
  • Object
show all
Defined in:
lib/tara/executable.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Executable

Returns a new instance of Executable.



5
6
7
# File 'lib/tara/executable.rb', line 5

def initialize(name)
  @name = name
end

Instance Method Details

#write(io) ⇒ Object



9
10
11
# File 'lib/tara/executable.rb', line 9

def write(io)
  io.puts(script(@name))
end