Sha256: 43bbe8bf23104ff722a2508200625fdb9fb2876c31aa22ab64701f83b67a0c3f

Contents?: true

Size: 921 Bytes

Versions: 4

Compression:

Stored size: 921 Bytes

Contents

= Description
Adds Ruby's powers to the command line.
Supports many enumerator methods applied to STDIN. The current line is represented by the "line" variable name or it's shorter alias 'l'.

To get help:
  rubyc help

== Example
  $ ls | rubyc map 'line.upcase'
  GEMFILE
  RAILS_VERSION
  README.RDOC
  RAKEFILE
  ACTIONMAILER
  ACTIONPACK
  ...
  
Here are the currently supported methods:
  compact      # Remove empty lines
  count_by     # Count the number of lines that have the same property. The property is defined by the return value of the given the block.
  grep         # Enumerable#grep
  help [TASK]  # Describe available tasks or one specific task
  map          # Apply Enumerable#map on each line
  merge        # Merge consecutive lines
  scan         # String#scan
  select       # Enumerable#select
  sort_by      # Emumerable#sort_by
  sum          # Rails Enumerable#sum
  uniq         # uniq
  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyc-0.0.14 README.rdoc
rubyc-0.0.13 README.rdoc
rubyc-0.0.12 README.rdoc
rubyc-0.0.11 README.rdoc