1. Genki Sugawara
  2. bracecomp

Source

bracecomp /

Filename Size Date modified Message
lib
30 B
141 B
435 B
433 B
= bracecomp

Copyright (c) 201q SUGAWARA Genki <sgwr_dts@yahoo.co.jp>

== Description

Brace expansion library.

== Install

gem install bracecomp

== Example

  require 'bracecomp'
  
  p 'server-{a,b}-{07..10}'.expand
  #=> ["server-a-07", "server-a-08", "server-a-09", "server-a-10", "server-b-07", "server-b-08", "server-b-09", "server-b-10"]
  
  p 'zone-{a..c}'.expand
  #=> ["zone-a", "zone-b", "zone-c"]