Class: Bgem::TargetFile
- Inherits:
-
Object
- Object
- Bgem::TargetFile
- Defined in:
- lib/bgem.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ TargetFile
constructor
A new instance of TargetFile.
- #write(string) ⇒ Object
Constructor Details
#initialize(path) ⇒ TargetFile
Returns a new instance of TargetFile.
65 66 67 |
# File 'lib/bgem.rb', line 65 def initialize path @path = Pathname path end |
Instance Method Details
#write(string) ⇒ Object
69 70 71 72 |
# File 'lib/bgem.rb', line 69 def write string @path.dirname.mkpath @path.write string end |