Class: JLDrill::Test::ExampleView

Inherits:
ShowExamplesContext::ExampleView show all
Defined in:
lib/jldrill/views/test/ExampleView.rb

Instance Attribute Summary collapse

Attributes inherited from ShowExamplesContext::ExampleView

#exampleWindow

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from ShowExamplesContext::ExampleView

#close, #showBusy, #updateNativeOnly, #updateTargetOnly

Methods inherited from Context::View

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

Constructor Details

#initialize(context) ⇒ ExampleView

Returns a new instance of ExampleView.



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

def initialize(context)
	super(context)
          @destroyed = false
          @examples = []
end

Instance Attribute Details

#destroyedObject

Returns the value of attribute destroyed.



7
8
9
# File 'lib/jldrill/views/test/ExampleView.rb', line 7

def destroyed
  @destroyed
end

#examplesObject

Returns the value of attribute examples.



7
8
9
# File 'lib/jldrill/views/test/ExampleView.rb', line 7

def examples
  @examples
end

Instance Method Details

#destroyObject



16
17
18
# File 'lib/jldrill/views/test/ExampleView.rb', line 16

def destroy
    @destroyed = true
end

#update(examples) ⇒ Object



20
21
22
# File 'lib/jldrill/views/test/ExampleView.rb', line 20

def update(examples)
    @examples = examples
end