Categories: None [Edit]
applix
ApplixHash#from_argv builds hashes from ARGV like argument vectors
according to following examples:
'-f' --> { :f => true }
'--flag' --> { :flag => true }
'--flag:false' --> { :flag => false }
'--flag=false' --> { :flag => 'false' }
'--option=value' --> { :option => "value" }
'--int=1' --> { :int => "1" }
'--float=2.3' --> { :float => "2.3" }
'--float:2.3' --> { :float => 2.3 }
'--txt="foo bar"' --> { :txt => "foo bar" }
'--txt:'"foo bar"'' --> { :txt => "foo bar" }
'--txt:%w{foo bar}' --> { :txt => ["foo", "bar"] }
'--now:Time.now' --> { :now => #<Date: 3588595/2,0,2299161> }
remaining arguments(non flag/options) are inserted as [:arguments,
args], eg:
Hash.from_argv %w(--foo --bar=loo 123 now)
becomes
{ :foo => true, :bar => 'loo', :arguments => ["123", "now"] }
Total
Ranking: 18,125 of 193,130
Downloads: 101,243
Daily
Ranking: 26,938 of 193,101
Downloads: 19
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 41,721 | 29,906 | gom-script |
| 52,087 | 22,155 | klear |
| 66,216 | 15,908 | tg-can-controls-gateway |
| 74,366 | 13,392 | mssql_mysql_migrator |
| 96,405 | 8,879 | ascii-tracker |
| 133,096 | 4,845 | usb-detection-sensor |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,432,663,778 | bundler |
| 8 | 1,327,099,370 | rake |
| 22 | 1,144,043,167 | rspec-mocks |
| 29 | 982,047,161 | rspec |
| 102 | 459,280,852 | byebug |
| 162 | 311,335,718 | daemons |
| 400 | 124,988,465 | guard-rspec |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | joe-sixpack |