class Leeloo::ClipboardOutputDecorator
Public Class Methods
new(output)
click to toggle source
# File lib/leeloo/output.rb, line 105 def initialize output @output = output end
Public Instance Methods
render_footprint(footprint)
click to toggle source
# File lib/leeloo/output.rb, line 140 def render_footprint footprint @output.render_footprint footprint end
render_preferences(preferences)
click to toggle source
# File lib/leeloo/output.rb, line 109 def render_preferences preferences @output.render_preferences preferences end
render_secret(secret)
click to toggle source
# File lib/leeloo/output.rb, line 121 def render_secret secret Signal.trap("INT") do Clipboard.clear abort "cleared" end Clipboard.copy secret.read wait = Thread.new do puts "cleaning in 30s" 30.times { print "." sleep 1 } end wait.join Clipboard.clear end
render_secrets(secrets)
click to toggle source
# File lib/leeloo/output.rb, line 113 def render_secrets secrets @output.render_secrets secrets end
render_text(text)
click to toggle source
# File lib/leeloo/output.rb, line 117 def render_text text @output.render_text text end