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: 17,644 of 188,838
Downloads: 99,524
Daily
Ranking: 57,789 of 188,822
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 40,909 | 29,432 | gom-script |
| 51,308 | 21,692 | klear |
| 65,306 | 15,611 | tg-can-controls-gateway |
| 73,867 | 13,022 | mssql_mysql_migrator |
| 95,192 | 8,721 | ascii-tracker |
| 131,644 | 4,752 | usb-detection-sensor |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,125,159,491 | bundler |
| 10 | 1,204,874,552 | rake |
| 21 | 1,091,212,918 | rspec-mocks |
| 29 | 941,968,871 | rspec |
| 100 | 435,112,938 | byebug |
| 151 | 305,053,581 | daemons |
| 393 | 119,405,965 | guard-rspec |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | joe-sixpack |