module NHKore::Fileable

@author Jonathan Bradley Whited @since 0.2.0

Public Class Methods

included(mod) click to toggle source
# File lib/nhkore/fileable.rb, line 18
def self.included(mod)
  mod.extend ClassMethods
end

Public Instance Methods

save_file(file,mode: 'wt',**kargs) click to toggle source
# File lib/nhkore/fileable.rb, line 22
def save_file(file,mode: 'wt',**kargs)
  File.open(file,mode: mode,**kargs) do |f|
    f.write(to_s)
  end
end