Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Luka: The duplicitous, silver-tongued proxy.
Ruby
Tree: 09ac84bebc

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
README.md
Rakefile
luka.gemspec

README.md

Luka

The duplicitous, silver-tongued proxy.

Luka is a simple proxy that gives you a fluent interface layer on top of any object.

class Pie
  def slice
    @sliced = true
  end

  def take
    @taken = true
  end

  def sliced?
    @sliced
  end

  def taken?
    @taken
  end
end

pie = Pie.new
eloquent_pie = luka(Pie.new)
eloquent_pie.slice.take

eloquent_pie.sliced? # => true
eloquent_pie.taken? # => true

There you have it.

Something went wrong with that request. Please try again.