Class: Workplaces::Dir
- Inherits:
-
Settings::Item
- Object
- Settings::Item
- Workplaces::Dir
- Defined in:
- lib/workplaces/dirs.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
- #==(dir) ⇒ Object
-
#initialize(context = []) ⇒ Dir
constructor
A new instance of Dir.
Constructor Details
#initialize(context = []) ⇒ Dir
Returns a new instance of Dir.
12 13 14 |
# File 'lib/workplaces/dirs.rb', line 12 def initialize(context=[]) @context = context.to_set end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
10 11 12 |
# File 'lib/workplaces/dirs.rb', line 10 def context @context end |
Instance Method Details
#==(dir) ⇒ Object
16 17 18 |
# File 'lib/workplaces/dirs.rb', line 16 def ==(dir) self.context == dir.context end |