Class: Brutal::File::Read
- Inherits:
-
Object
- Object
- Brutal::File::Read
- Defined in:
- lib/brutal/file/read.rb
Overview
Brutal::File::Read
Constant Summary collapse
- NAME =
".brutal.yml"
Instance Attribute Summary collapse
- #name ⇒ Object readonly
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name = NAME) ⇒ Read
constructor
A new instance of Read.
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
14 15 16 |
# File 'lib/brutal/file/read.rb', line 14 def name @name end |
Instance Method Details
#call ⇒ Object
20 21 22 23 24 |
# File 'lib/brutal/file/read.rb', line 20 def call ::File.read(path) rescue ::Errno::ENOENT => _e abort("File #{path} not found!") end |