Class: Tara::Executable
- Inherits:
-
Object
- Object
- Tara::Executable
- Defined in:
- lib/tara/executable.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Executable
constructor
A new instance of Executable.
- #write(io) ⇒ Object
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 |