Class: ActiveGit::FileEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/active_git/events/file_event.rb

Direct Known Subclasses

FileDelete, FileSave

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, working_path = nil) ⇒ FileEvent

Returns a new instance of FileEvent.



6
7
8
9
# File 'lib/active_git/events/file_event.rb', line 6

def initialize(data, working_path=nil)
  @data = data
  @working_path = working_path || ActiveGit.configuration.working_path
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/active_git/events/file_event.rb', line 4

def data
  @data
end