class String

Overload the string class

Public Instance Methods

day_of_the_week(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 27
def day_of_the_week(format = '%d/%m/%Y')
    d = Date.new
    d.day_of_the_week(self, format)
end
day_of_the_week_name(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 37
def day_of_the_week_name(format = '%d/%m/%Y')
    d = Date.new
    d.day_of_the_week_name(self, format)
end
day_of_the_year(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 47
def day_of_the_year(format = '%d/%m/%Y')
    d = Date.new
    d.day_of_the_year(self, format)
end
days_between(end_date, format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 52
def days_between(end_date, format = '%d/%m/%Y')
    d = Date.new
    d.days_between(self, end_date, format)
end
dotw(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 22
def dotw(format = '%d/%m/%Y')
    d = Date.new
    d.day_of_the_week(self, format)
end
dotwn(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 32
def dotwn(format = '%d/%m/%Y')
    d = Date.new
    d.day_of_the_week_name(self, format)
end
doty(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 42
def doty(format = '%d/%m/%Y')
    d = Date.new
    d.day_of_the_year(self, format)
end
the_day(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 7
def the_day(format = '%d/%m/%Y')
    d = Date.new
    d.the_day(self, format)
end
the_month(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 12
def the_month(format = '%d/%m/%Y')
    d = Date.new
    d.the_month(self, format)
end
the_year(format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 17
def the_year(format = '%d/%m/%Y')
    d = Date.new
    d.the_year(self, format)
end
weekdays(end_date, format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 67
def weekdays(end_date, format = '%d/%m/%Y')
    d = Date.new
    d.weekdays(self, end_date, format)
end
weekdays_string(end_date, format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 72
def weekdays_string(end_date, format = '%d/%m/%Y')
    d = Date.new
    d.weekdays_string(self, end_date, format)
end
weekends(end_date, format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 57
def weekends(end_date, format = '%d/%m/%Y')
    d = Date.new
    d.weekends(self, end_date, format)
end
weekends_string(end_date, format = '%d/%m/%Y') click to toggle source
# File lib/dates_toolbox/overloads.rb, line 62
def weekends_string(end_date, format = '%d/%m/%Y')
    d = Date.new
    d.weekends_string(self, end_date, format)
end