Class: RailsCalendar::Simple
- Inherits:
-
Object
- Object
- RailsCalendar::Simple
- Includes:
- ActionView::Context, ActionView::Helpers
- Defined in:
- lib/rails_calendar/simple.rb
Constant Summary collapse
- DAYS =
[:sunday, :monday, :tuesday, :wednesday, :thursday, :friday, :saturday]
Instance Attribute Summary collapse
-
#calendar_day ⇒ Object
Returns the value of attribute calendar_day.
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#view_context ⇒ Object
Returns the value of attribute view_context.
Instance Method Summary collapse
-
#initialize(calendar_day, view_context = nil, &block) ⇒ Simple
constructor
A new instance of Simple.
- #to_s ⇒ Object
Constructor Details
#initialize(calendar_day, view_context = nil, &block) ⇒ Simple
Returns a new instance of Simple.
16 17 18 19 20 21 |
# File 'lib/rails_calendar/simple.rb', line 16 def initialize(calendar_day, view_context = nil, &block) @config = RailsCalendar.configuration @calendar_day = calendar_day @view_context = view_context @callback = block end |
Instance Attribute Details
#calendar_day ⇒ Object
Returns the value of attribute calendar_day.
10 11 12 |
# File 'lib/rails_calendar/simple.rb', line 10 def calendar_day @calendar_day end |
#callback ⇒ Object
Returns the value of attribute callback.
11 12 13 |
# File 'lib/rails_calendar/simple.rb', line 11 def callback @callback end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/rails_calendar/simple.rb', line 9 def config @config end |
#view_context ⇒ Object
Returns the value of attribute view_context.
12 13 14 |
# File 'lib/rails_calendar/simple.rb', line 12 def view_context @view_context end |
Instance Method Details
#to_s ⇒ Object
23 24 25 |
# File 'lib/rails_calendar/simple.rb', line 23 def to_s table end |