Class: ActiveGit::FileEvent
- Inherits:
-
Object
- Object
- ActiveGit::FileEvent
- Defined in:
- lib/active_git/events/file_event.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data, working_path = nil) ⇒ FileEvent
constructor
A new instance of FileEvent.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/active_git/events/file_event.rb', line 4 def data @data end |