Module: Shift::Identity::StringExtension

Defined in:
lib/shift/c/identity.rb

Overview

Mixed into the resulting strings to make them easy to save.

Instance Method Summary collapse

Instance Method Details

#write(path) ⇒ Object

Write the string to a sepcified path.



16
17
18
19
20
21
# File 'lib/shift/c/identity.rb', line 16

def write(path)
  File.open(path, 'w') do |file|
    file.write(self)
  end
  self
end