Class: DNSimple::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsimple/command.rb

Instance Method Summary collapse

Constructor Details

#initialize(out = $stdout) ⇒ Command

Returns a new instance of Command.



3
4
5
# File 'lib/dnsimple/command.rb', line 3

def initialize(out=$stdout)
  @out = out
end

Instance Method Details

#say(message) ⇒ Object



6
7
8
# File 'lib/dnsimple/command.rb', line 6

def say(message)
  @out.write("#{message}\n")
end