Project

luka

0.0
No commit activity in last 3 years
No release in over 3 years
Luka is a simple proxy that gives you a fluent interface layer on top of any object.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
>= 0
 Project Readme

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.