Class: RespondForHelper::Flashes::Timestamp
- Defined in:
- lib/respond_for_helper/flashes/timestamp.rb
Instance Method Summary collapse
-
#initialize(type, options = {}) ⇒ Timestamp
constructor
A new instance of Timestamp.
Methods inherited from Base
Constructor Details
#initialize(type, options = {}) ⇒ Timestamp
Returns a new instance of Timestamp.
6 7 8 9 |
# File 'lib/respond_for_helper/flashes/timestamp.rb', line 6 def initialize(type, = {}) super @options = .reverse_merge(timestamp: I18n.l(now)) end |