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,270 of 186,959
Downloads: 97,667
Daily
Ranking: 52,232 of 186,713
Downloads: 13
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
40,401 | 28,483 | gom-script |
50,826 | 20,884 | klear |
64,311 | 15,183 | tg-can-controls-gateway |
73,801 | 12,370 | mssql_mysql_migrator |
94,036 | 8,438 | ascii-tracker |
130,440 | 4,565 | usb-detection-sensor |
Depends on
Rank | Downloads | Name |
---|---|---|
1 | 2,905,736,219 | bundler |
10 | 1,128,098,871 | rake |
19 | 1,048,768,703 | rspec-mocks |
27 | 909,387,510 | rspec |
98 | 414,508,575 | byebug |
138 | 297,571,742 | daemons |
383 | 114,665,975 | guard-rspec |
Owners
# | Gravatar | Handle |
---|---|---|
1 | joe-sixpack |