Class: WatchDate
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
-
#initialize ⇒ WatchDate
constructor
A new instance of WatchDate.
- #remove ⇒ Object
Constructor Details
#initialize ⇒ WatchDate
Returns a new instance of WatchDate.
6 7 8 |
# File 'lib/date_app.rb', line 6 def initialize @app = Time.now end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
4 5 6 |
# File 'lib/date_app.rb', line 4 def app @app end |
Instance Method Details
#remove ⇒ Object
10 11 12 |
# File 'lib/date_app.rb', line 10 def remove remove_instance_variable(:@app) end |