Module: TimePilot::Features::ClassMethods
- Defined in:
- lib/time_pilot/time_pilot.rb
Instance Attribute Summary collapse
-
#time_pilot_groups ⇒ Object
readonly
Returns the value of attribute time_pilot_groups.
Instance Method Summary collapse
Instance Attribute Details
#time_pilot_groups ⇒ Object (readonly)
Returns the value of attribute time_pilot_groups.
42 43 44 |
# File 'lib/time_pilot/time_pilot.rb', line 42 def time_pilot_groups @time_pilot_groups end |
Instance Method Details
#is_pilot_group(options = {}) ⇒ Object
43 44 45 |
# File 'lib/time_pilot/time_pilot.rb', line 43 def is_pilot_group ={} @time_pilot_groups = Array([:overridden_by]).map { |e| e.to_s } + [self.name.downcase.to_s] end |