Class: JLDrill::Test::AboutView
- Inherits:
-
ShowAboutContext::AboutView
- Object
- Context::View
- ShowAboutContext::AboutView
- JLDrill::Test::AboutView
- Defined in:
- lib/jldrill/views/test/AboutView.rb
Instance Attribute Summary collapse
-
#about ⇒ Object
readonly
Returns the value of attribute about.
-
#hasRun ⇒ Object
readonly
Returns the value of attribute hasRun.
Attributes inherited from Context::View
Instance Method Summary collapse
-
#initialize(context, about) ⇒ AboutView
constructor
A new instance of AboutView.
- #run ⇒ Object
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context, about) ⇒ AboutView
Returns a new instance of AboutView.
8 9 10 11 12 |
# File 'lib/jldrill/views/test/AboutView.rb', line 8 def initialize(context, about) super(context) @about = about @hasRun = false end |
Instance Attribute Details
#about ⇒ Object (readonly)
Returns the value of attribute about.
6 7 8 |
# File 'lib/jldrill/views/test/AboutView.rb', line 6 def about @about end |
#hasRun ⇒ Object (readonly)
Returns the value of attribute hasRun.
6 7 8 |
# File 'lib/jldrill/views/test/AboutView.rb', line 6 def hasRun @hasRun end |
Instance Method Details
#run ⇒ Object
14 15 16 |
# File 'lib/jldrill/views/test/AboutView.rb', line 14 def run @hasRun = true end |