Class: Canopus::Project::Watcher::Event

Inherits:
Struct
  • Object
show all
Defined in:
lib/canopus/project/watcher.rb,
sig/services.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#path ⇒ Object

Returns the value of attribute path

Returns:

  • (Object) —

    the current value of path



4
5
6
# File 'lib/canopus/project/watcher.rb', line 4

def path
  @path
end

#type ⇒ Object

Returns the value of attribute type

Returns:

  • (Object) —

    the current value of type



4
5
6
# File 'lib/canopus/project/watcher.rb', line 4

def type
  @type
end

Class Method Details

.new ⇒ instance

Parameters:

  • type: (:created, :modified, :deleted)
  • path: (String)

Returns:

  • (instance)


20
# File 'sig/services.rbs', line 20

def self.new: (type: :created | :modified | :deleted, path: String) -> instance