Exception: Gollum::DuplicatePageError
- Defined in:
- lib/gollum-lib.rb
Instance Attribute Summary collapse
-
#attempted_path ⇒ Object
Returns the value of attribute attempted_path.
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#existing_path ⇒ Object
Returns the value of attribute existing_path.
Instance Method Summary collapse
-
#initialize(dir, existing, attempted, message = nil) ⇒ DuplicatePageError
constructor
A new instance of DuplicatePageError.
Constructor Details
#initialize(dir, existing, attempted, message = nil) ⇒ DuplicatePageError
Returns a new instance of DuplicatePageError.
45 46 47 48 49 50 |
# File 'lib/gollum-lib.rb', line 45 def initialize(dir, existing, attempted, = nil) @dir = dir @existing_path = existing @attempted_path = attempted super( || "Cannot write #{@dir}/#{@attempted_path}, found #{@dir}/#{@existing_path}.") end |
Instance Attribute Details
#attempted_path ⇒ Object
Returns the value of attribute attempted_path.
43 44 45 |
# File 'lib/gollum-lib.rb', line 43 def attempted_path @attempted_path end |
#dir ⇒ Object
Returns the value of attribute dir.
41 42 43 |
# File 'lib/gollum-lib.rb', line 41 def dir @dir end |
#existing_path ⇒ Object
Returns the value of attribute existing_path.
42 43 44 |
# File 'lib/gollum-lib.rb', line 42 def existing_path @existing_path end |