This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ rpm help | |
| RPM version 4.4.2.3 | |
| Copyright (C) 1998-2002 - Red Hat, Inc. | |
| This program may be freely redistributed under the terms of the GNU GPL | |
| Usage: rpm [-aKfgpWHqV] [-aKfgpWHqVcdils] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVKi] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv?] [-a|--all] [-f|--file] [-g|--group] | |
| [-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid] | |
| [--specfile] [--triggeredby] [--whatrequires] [--whatprovides] | |
| [--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list] | |
| [--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config = SimpleConfig.new | |
| config.load_file File.join(File.dirname(__FILE__), "sample.rb") | |
| config.get(:foo) #=> "bar" | |
| config[:save_path] #=> "/var/www/download" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Turn this: | |
| # [1, 2].include? 3 | |
| # | |
| # Into this: | |
| # 3.in? [1, 2] | |
| # | |
| # Why? Shorter, more readable conditionals: | |
| # puts 'booya' if 3.in? [1, 2] | |
| class Object |
NewerOlder