Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Some functional programming features for ruby
branch: master

This branch is even with mshakhan:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
LICENSE
README.rdoc
Rakefile
TODO
fruby.gemspec

README.rdoc

Description

Some functional programming features for ruby.

Usage

Now implemented only define method. You can use it like this:

module Math
  class << self
    include FRuby::Definer
    define(:fact, Fixnum) { |n| n * fact(n - 1) }
    define(:fact, 0) { 1 }
    define(:fact, 1) { 1 }
  end
end

Math::fact(5) #=> 120
Something went wrong with that request. Please try again.