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