Exception: UsageMod::FileOutputExistsError

Inherits:
Error
  • Object
show all
Defined in:
lib/Usage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ FileOutputExistsError

Returns a new instance of FileOutputExistsError.



106
107
108
109
# File 'lib/Usage.rb', line 106

def initialize(filename)
  @filename = filename
  super("output file exists: '#{filename}'")
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



105
106
107
# File 'lib/Usage.rb', line 105

def filename
  @filename
end