Class: Plz::Commands::LinkNotFound

Inherits:
Object
  • Object
show all
Defined in:
lib/plz/commands/link_not_found.rb

Instance Method Summary collapse

Constructor Details

#initialize(pathname: nil, action_name: nil, target_name: nil) ⇒ LinkNotFound

Returns a new instance of LinkNotFound.



4
5
6
7
8
# File 'lib/plz/commands/link_not_found.rb', line 4

def initialize(pathname: nil, action_name: nil, target_name: nil)
  @pathname = pathname
  @action_name = action_name
  @target_name = target_name
end

Instance Method Details

#callObject



10
11
12
# File 'lib/plz/commands/link_not_found.rb', line 10

def call
  puts "#{@pathname} has no definition for `#{@action_name} #{@target_name}`"
end