Class: Get::Smart::Topic
- Inherits:
-
Object
- Object
- Get::Smart::Topic
- Defined in:
- lib/get/smart/topic.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #files ⇒ Object
-
#initialize(name, path) ⇒ Topic
constructor
A new instance of Topic.
Constructor Details
#initialize(name, path) ⇒ Topic
Returns a new instance of Topic.
4 5 6 7 |
# File 'lib/get/smart/topic.rb', line 4 def initialize(name, path) @name = name @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/get/smart/topic.rb', line 2 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
2 3 4 |
# File 'lib/get/smart/topic.rb', line 2 def path @path end |
Instance Method Details
#files ⇒ Object
9 10 11 |
# File 'lib/get/smart/topic.rb', line 9 def files @files ||= Dir.glob("#{@path}#{name}/**/*.md") end |