module Keystorage
Constants
- DEFAULT_FILE
- DEFAULT_SECRET
Public Instance Methods
render(out,format =:text)
click to toggle source
# File lib/keystorage.rb, line 18 def render out,format =:text case format when :text then render_text out else raise FormatNotSupport.new(format.to_s) end end
render_text(out)
click to toggle source
# File lib/keystorage.rb, line 27 def render_text out if out.kind_of?(Array) out.join("\n") else out.to_s end end