class Amnesie::Host
Public Class Methods
new()
click to toggle source
# File lib/amnesie/host.rb, line 5 def initialize @nb = rand(8..25) @hostname = SecureRandom.alphanumeric(@ng) Nito::Hostname.new(@hostname) puts to_s end
Public Instance Methods
to_s()
click to toggle source
# File lib/amnesie/host.rb, line 12 def to_s "Your hostname will become #{@hostname}" end