util.rb
# Check if the user is ignored
# @return [TrueClass, FalseClass]
Check if the user is ignored
Check if the user is ignored
def ignored?
    return @ignored unless @ignored.nil?
    if File.exists? 'ignore.yml'
      YAML::load_file('ignore.yml')['users'].include? @name
    else
      File.open('ignore.yml', 'w+') {|f| f.write({'users' => []}.to_yaml)}
      false
    end
  end
def ignored? return @ignored unless @ignored . nil? if File . exists? 'ignore.yml' YAML :: load_file ( 'ignore.yml' ) [ 'users' ] . include? @name else File . open ( 'ignore.yml' , 'w+' ) { | f | f . write ( { 'users' => [ ] } . to_yaml ) } false end end
Check if the user is ignored
Check if the user is ignored
None
TrueClass, FalseClass