Exception: Ducktape::InconsistentAccessorError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ducktape/bindable.rb

Instance Method Summary collapse

Constructor Details

#initialize(writeonly, name) ⇒ InconsistentAccessorError

Returns a new instance of InconsistentAccessorError.



10
11
12
13
# File 'lib/ducktape/bindable.rb', line 10

def initialize(writeonly, name)
  type, accessor = writeonly ? [:Write, :getter] : [:Read, :setter]
  super("#{type} only property with a custom #{accessor}: #{name}")
end