Module: Later
- Defined in:
- lib/later.rb,
lib/later/version.rb
Defined Under Namespace
Classes: Schedule
Constant Summary collapse
- VERSION =
'0.2.0'
Class Method Summary collapse
-
.[](schedule) ⇒ Object
The easiest way to create or reference a schedule.
-
.key ⇒ Object
Returns the Nest key of this module.
Class Method Details
.[](schedule) ⇒ Object
The easiest way to create or reference a schedule. Returns an instance of a Later::Schedule with the given key.
Later[:reservations] #=> #<Later::Schedule:0x007faf3b054f50 @key="Later:reservations">
182 183 184 |
# File 'lib/later.rb', line 182 def self.[](schedule) @schedules[schedule.to_sym] ||= Schedule.new schedule end |
.key ⇒ Object
Returns the Nest key of this module.
Later[:reservations].key #=> Later::reservations
174 175 176 |
# File 'lib/later.rb', line 174 def self.key Nest.new('Later') end |