Class: Frizz::Local
- Inherits:
-
Object
- Object
- Frizz::Local
- Defined in:
- lib/frizz/local.rb
Defined Under Namespace
Classes: File
Instance Method Summary collapse
- #file_for(local_path) ⇒ Object
- #files ⇒ Object
-
#initialize(root_path, ignorance) ⇒ Local
constructor
A new instance of Local.
Constructor Details
#initialize(root_path, ignorance) ⇒ Local
Returns a new instance of Local.
3 4 5 6 |
# File 'lib/frizz/local.rb', line 3 def initialize(root_path, ignorance) @root_path = root_path @ignorance = ignorance end |
Instance Method Details
#file_for(local_path) ⇒ Object
18 19 20 |
# File 'lib/frizz/local.rb', line 18 def file_for(local_path) ::File.read (local_path) end |