Class: Plz::Commands::InvalidSchema

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

Instance Method Summary collapse

Constructor Details

#initialize(pathname: nil, error: nil) ⇒ InvalidSchema

Returns a new instance of InvalidSchema.



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

def initialize(pathname: nil, error: nil)
  @pathname = pathname
  @error = error
end

Instance Method Details

#callObject



9
10
11
# File 'lib/plz/commands/invalid_schema.rb', line 9

def call
  puts "#{@pathname} was invalid:#{error_message}"
end