Class: Tempfile
- Inherits:
-
Object
- Object
- Tempfile
- Defined in:
- lib/mistilteinn/ticket/git_config.rb
Instance Method Summary collapse
Instance Method Details
#content=(content) ⇒ Object
12 13 14 15 |
# File 'lib/mistilteinn/ticket/git_config.rb', line 12 def content=(content) self.rewind self.write content end |
#edit(editor = nil) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/mistilteinn/ticket/git_config.rb', line 5 def edit(editor=nil) mtime_before_edit = self.mtime self.close system "#{editor || ENV["EDITOR"]} #{self.path}" self.open return self.mtime != mtime_before_edit end |