Class: PolyrexObjects::Month
- Inherits:
-
Object
- Object
- PolyrexObjects::Month
- Includes:
- LIBRARY
- Defined in:
- lib/polyrex_calendarbase.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#css_layout ⇒ Object
Returns the value of attribute css_layout.
-
#css_style ⇒ Object
Returns the value of attribute css_style.
-
#xslt ⇒ Object
Returns the value of attribute xslt.
Instance Method Summary collapse
Methods included from LIBRARY
#fetch_file, #generate_webpage, #read
Instance Attribute Details
#css_layout ⇒ Object
Returns the value of attribute css_layout.
107 108 109 |
# File 'lib/polyrex_calendarbase.rb', line 107 def css_layout @css_layout end |
#css_style ⇒ Object
Returns the value of attribute css_style.
107 108 109 |
# File 'lib/polyrex_calendarbase.rb', line 107 def css_style @css_style end |
#xslt ⇒ Object
Returns the value of attribute xslt.
107 108 109 |
# File 'lib/polyrex_calendarbase.rb', line 107 def xslt @xslt end |
Instance Method Details
#d(n) ⇒ Object
113 114 115 |
# File 'lib/polyrex_calendarbase.rb', line 113 def d(n) self.records[n-1] end |
#find_today ⇒ Object
117 118 119 |
# File 'lib/polyrex_calendarbase.rb', line 117 def find_today() self.element "//day/summary[xday='#{Time.now.day}']" end |
#highlight_today ⇒ Object
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/polyrex_calendarbase.rb', line 121 def highlight_today() # remove the old highlight if any prev_day = self.at_css '.today' prev_day.attributes.delete :class if prev_day today = find_today() today.attributes[:class] = 'today' end |
#inspect ⇒ Object
109 110 111 |
# File 'lib/polyrex_calendarbase.rb', line 109 def inspect() "#<CalendarObjects::Month:%s" % __id__ end |