Skip to content

Instantly share code, notes, and snippets.

@RoxasShadow
Created October 29, 2013 20:50
Show Gist options
  • Select an option

  • Save RoxasShadow/7222366 to your computer and use it in GitHub Desktop.

Select an option

Save RoxasShadow/7222366 to your computer and use it in GitHub Desktop.
require 'superators19'
class Range
superator '>>+' do |something|
[].tap { |ary|
self.each { |i|
ary << something.new
}
}
end
end
p (1..10) >>+ String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment