Class: JLDrill::Test::OptionsView

Inherits:
SetOptionsContext::OptionsView show all
Defined in:
lib/jldrill/views/test/OptionsView.rb

Instance Attribute Summary collapse

Attributes inherited from SetOptionsContext::OptionsView

#options

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from SetOptionsContext::OptionsView

#exit, #optionsSet=, #optionsSet?

Methods inherited from Context::View

#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context) ⇒ OptionsView

Returns a new instance of OptionsView.



9
10
11
12
13
14
15
# File 'lib/jldrill/views/test/OptionsView.rb', line 9

def initialize(context)
	super(context)
          @destroyed = false
          @updated = false
          @filename = nil
          @hasRun = false
end

Instance Attribute Details

#destroyedObject

Returns the value of attribute destroyed.



6
7
8
# File 'lib/jldrill/views/test/OptionsView.rb', line 6

def destroyed
  @destroyed
end

#filenameObject

Returns the value of attribute filename.



6
7
8
# File 'lib/jldrill/views/test/OptionsView.rb', line 6

def filename
  @filename
end

#hasRunObject

Returns the value of attribute hasRun.



6
7
8
# File 'lib/jldrill/views/test/OptionsView.rb', line 6

def hasRun
  @hasRun
end

#updatedObject

Returns the value of attribute updated.



6
7
8
# File 'lib/jldrill/views/test/OptionsView.rb', line 6

def updated
  @updated
end

Instance Method Details

#destroyObject



17
18
19
# File 'lib/jldrill/views/test/OptionsView.rb', line 17

def destroy
    @destroyed = true
end

#runObject



29
30
31
32
# File 'lib/jldrill/views/test/OptionsView.rb', line 29

def run
          @hasRun = true
          super
end

#setDictionaryFilename(filename) ⇒ Object



25
26
27
# File 'lib/jldrill/views/test/OptionsView.rb', line 25

def setDictionaryFilename(filename)
    @filename = filename
end

#update(options) ⇒ Object



21
22
23
# File 'lib/jldrill/views/test/OptionsView.rb', line 21

def update(options)
    @updated = true
end