class Ayadn::SetBase
Attributes
category[RW]
input[RW]
output[RW]
Public Class Methods
new()
click to toggle source
# File lib/ayadn/set.rb, line 294 def initialize Settings.load_config() Settings.get_token() Settings.init_config() Logs.create_logger() @status = Status.new end
Public Instance Methods
log()
click to toggle source
# File lib/ayadn/set.rb, line 307 def log @status.say do @status.say_cyan :updated, "'#{@input}' in '#{@category}'" @status.say_green :content, "'#{@output}'" end Logs.rec.info "new value for '#{@input}' in '#{@category}' => '#{@output}'" end
save()
click to toggle source
# File lib/ayadn/set.rb, line 302 def save Settings.save_config() log() end