Exception: RubyCurses::PropertyVetoException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rbcurse/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



163
164
165
166
167
# File 'lib/rbcurse/rwidget.rb', line 163

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

Instance Attribute Details

#eventObject (readonly)

Since:

  • 1.4.0



168
169
170
# File 'lib/rbcurse/rwidget.rb', line 168

def event
  @event
end

#stringObject (readonly)

Since:

  • 1.4.0



168
169
170
# File 'lib/rbcurse/rwidget.rb', line 168

def string
  @string
end