Exception: RubyCurses::PropertyVetoException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rbcurse/core/widgets/rwidget.rb

Overview

The property change is not acceptable, undo it. e.g. test2.rb

Since:

  • 1.4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, event) ⇒ PropertyVetoException

Returns a new instance of PropertyVetoException.

Since:

  • 1.4.0



150
151
152
153
154
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 150

def initialize(string, event)
  @string = string
  @event = event
  super(string)
end

Instance Attribute Details

#eventObject (readonly)

Since:

  • 1.4.0



155
156
157
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 155

def event
  @event
end

#stringObject (readonly)

Since:

  • 1.4.0



155
156
157
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 155

def string
  @string
end