Class: LesliView::Widgets::Date
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- LesliView::Widgets::Date
- Defined in:
- lib/lesli_view/widgets/date.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
Instance Method Summary collapse
-
#initialize(date = Time.now) ⇒ Date
constructor
A new instance of Date.
Constructor Details
#initialize(date = Time.now) ⇒ Date
Returns a new instance of Date.
38 39 40 |
# File 'lib/lesli_view/widgets/date.rb', line 38 def initialize(date = Time.now) @date = date end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
36 37 38 |
# File 'lib/lesli_view/widgets/date.rb', line 36 def date @date end |