Class: Haha::Writer

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.write_to(file_path, content) ⇒ Object



4
5
6
# File 'lib/write_file.rb', line 4

def self.write_to(file_path,content)
  File.open(file_path,'w+') {|f| f.write(content)}
end

Instance Method Details

#run(num) ⇒ Object



8
9
10
# File 'lib/write_file.rb', line 8

def run(num)
  num + 1
end