Class: JLDrill::Test::ExampleView
- Inherits:
-
ShowExamplesContext::ExampleView
- Object
- Context::View
- ShowExamplesContext::ExampleView
- JLDrill::Test::ExampleView
- Defined in:
- lib/jldrill/views/test/ExampleView.rb
Instance Attribute Summary collapse
-
#destroyed ⇒ Object
Returns the value of attribute destroyed.
-
#examples ⇒ Object
Returns the value of attribute examples.
Attributes inherited from ShowExamplesContext::ExampleView
Attributes inherited from Context::View
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(context) ⇒ ExampleView
constructor
A new instance of ExampleView.
- #update(examples) ⇒ Object
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
#destroyed ⇒ Object
Returns the value of attribute destroyed.
7 8 9 |
# File 'lib/jldrill/views/test/ExampleView.rb', line 7 def destroyed @destroyed end |
#examples ⇒ Object
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
#destroy ⇒ Object
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 |