Class: Bgem::TargetFile

Inherits:
Object
  • Object
show all
Defined in:
lib/bgem.rb

Instance Method Summary collapse

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