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,378 of 197,108
Downloads: 104,439
Daily
Ranking: 17,725 of 197,085
Downloads: 22
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 42,525 | 30,341 | gom-script |
| 52,702 | 22,637 | klear |
| 67,355 | 16,148 | tg-can-controls-gateway |
| 75,297 | 13,680 | mssql_mysql_migrator |
| 97,742 | 9,040 | ascii-tracker |
| 135,305 | 4,924 | usb-detection-sensor |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,798,773,199 | bundler |
| 8 | 1,429,009,039 | rake |
| 22 | 1,201,223,976 | rspec-mocks |
| 29 | 1,025,659,218 | rspec |
| 108 | 482,828,247 | byebug |
| 168 | 317,347,790 | daemons |
| 418 | 130,400,646 | guard-rspec |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | joe-sixpack |