Top Level Namespace
Defined Under Namespace
Modules: WeekOfMonth Classes: Date, Hash, TestConstantForDate, TestConstantForTime, TestDayForDate, TestDayForTime, TestMonthForDate, TestMonthForTime, TestWeekForDate, TestWeekForTime, TestYearForDate, TestYearForTime, Time
Instance Method Summary collapse
-
#require_file(file_name) ⇒ Object
Supports both version of ruby 1.8 and 1.9 for loading a file.
Instance Method Details
#require_file(file_name) ⇒ Object
Supports both version of ruby 1.8 and 1.9 for loading a file.
5 6 7 |
# File 'lib/week_of_month.rb', line 5 def require_file(file_name) RUBY_VERSION < '1.9' ? require(file_name) : require_relative(file_name) end |