Class: RCrewAI::Knowledge::FileSource
- Defined in:
- lib/rcrewai/knowledge/sources.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ FileSource
constructor
A new instance of FileSource.
- #read ⇒ Object
Constructor Details
#initialize(path) ⇒ FileSource
Returns a new instance of FileSource.
25 26 27 28 |
# File 'lib/rcrewai/knowledge/sources.rb', line 25 def initialize(path) super() @path = path end |
Instance Method Details
#read ⇒ Object
30 31 32 |
# File 'lib/rcrewai/knowledge/sources.rb', line 30 def read File.read(@path) end |