Class: Tara::Executable
- Inherits:
-
Object
- Object
- Tara::Executable
- Defined in:
- lib/tara/executable.rb
Instance Method Summary collapse
-
#initialize(dirpath, name) ⇒ Executable
constructor
A new instance of Executable.
- #write(io) ⇒ Object
Constructor Details
#initialize(dirpath, name) ⇒ Executable
Returns a new instance of Executable.
6 7 8 9 |
# File 'lib/tara/executable.rb', line 6 def initialize(dirpath, name) @dirpath = dirpath @name = name end |
Instance Method Details
#write(io) ⇒ Object
11 12 13 |
# File 'lib/tara/executable.rb', line 11 def write(io) io.puts(script_template) end |