Class: Annoyme::ShellFileAppender
- Inherits:
-
Object
- Object
- Annoyme::ShellFileAppender
- Defined in:
- lib/annoyme/shell_file_appender.rb
Constant Summary collapse
- COMMAND_TO_APPEND =
'annoyme print'
Instance Method Summary collapse
- #append_command ⇒ Object
-
#initialize(path) ⇒ ShellFileAppender
constructor
A new instance of ShellFileAppender.
Constructor Details
#initialize(path) ⇒ ShellFileAppender
Returns a new instance of ShellFileAppender.
7 8 9 10 |
# File 'lib/annoyme/shell_file_appender.rb', line 7 def initialize(path) raise 'shellfile does not exist' unless File.exist?(path) @path = path end |