Class: Cfoo::Module
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #files ⇒ Object
-
#initialize(dir, file_system) ⇒ Module
constructor
A new instance of Module.
Constructor Details
#initialize(dir, file_system) ⇒ Module
Returns a new instance of Module.
5 6 7 |
# File 'lib/cfoo/module.rb', line 5 def initialize(dir, file_system) @dir, @file_system = dir, file_system end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
3 4 5 |
# File 'lib/cfoo/module.rb', line 3 def dir @dir end |
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/cfoo/module.rb', line 13 def ==(other) eql? other end |
#eql?(other) ⇒ Boolean
17 18 19 |
# File 'lib/cfoo/module.rb', line 17 def eql?(other) dir = other.dir end |
#files ⇒ Object
9 10 11 |
# File 'lib/cfoo/module.rb', line 9 def files @file_system.glob_relative("#{dir}/*.yml") end |