Class: Date
Overview
Add precision Runt::DPrecision
to standard library classes Date and DateTime (which is a subclass of Date). Also, add an inlcude? method for interoperability with Runt::TExpr
classes
Constant Summary
Constants included from Runt
Runt::April, Runt::August, Runt::DAYS, Runt::December, Runt::Eighth, Runt::Eigth, Runt::February, Runt::Fifth, Runt::First, Runt::Fourth, Runt::Fri, Runt::Friday, Runt::January, Runt::July, Runt::June, Runt::Last, Runt::Last_of, Runt::MONTHS, Runt::March, Runt::May, Runt::Mon, Runt::Monday, Runt::Ninth, Runt::November, Runt::ORDINAL_ABBR, Runt::ORDINAL_SUFFIX, Runt::October, Runt::Sat, Runt::Saturday, Runt::Second, Runt::Second_to_last, Runt::September, Runt::Seventh, Runt::Sixth, Runt::Sun, Runt::Sunday, Runt::Tenth, Runt::Third, Runt::Thu, Runt::Thursday, Runt::Tue, Runt::Tuesday, Runt::VERSION, Runt::WEEK_OF_MONTH_ORDINALS, Runt::Wed, Runt::Wednesday
Instance Attribute Summary collapse
-
#date_precision ⇒ Object
Returns the value of attribute date_precision.
Instance Method Summary collapse
- #include?(expr) ⇒ Boolean
-
#precision ⇒ Object
Returns the value of attribute date_precision.
Methods included from Runt
#build, const, day_name, format_date, format_time, #method_missing, month_name, ordinalize, #parse_time
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Runt
Instance Attribute Details
#date_precision ⇒ Object
Returns the value of attribute date_precision.
165 166 167 |
# File 'lib/runt.rb', line 165 def date_precision @date_precision end |
Instance Method Details
#include?(expr) ⇒ Boolean
167 168 169 |
# File 'lib/runt.rb', line 167 def include?(expr) eql?(expr) end |
#precision ⇒ Object
Returns the value of attribute date_precision.
166 167 168 |
# File 'lib/runt.rb', line 166 def date_precision @date_precision end |