Class: Plz::Commands::LinkNotFound
- Inherits:
-
Object
- Object
- Plz::Commands::LinkNotFound
- Defined in:
- lib/plz/commands/link_not_found.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(pathname: nil, action_name: nil, target_name: nil) ⇒ LinkNotFound
constructor
A new instance of LinkNotFound.
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
#call ⇒ Object
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 |