#84 new
paul (at 8thlight)

Action Mapping

Reported by paul (at 8thlight) | December 8th, 2008 @ 01:04 PM | in Limelight 0.6

Look at the following mapping module Login

def button_pressed(e)

attempt_login

end

def attempt_login

#behavior

end

end

in my players modules. I want to be able to map it using a simple dsl, like so

module Login button_pressed :attempt_login, :pass_event => false

def attempt_login

#behavior

end

end

So I can call methods like

attempt_login in my specs and not be passing nil around as the event (most of the time I don't use the event)

It makes my specs a lot cleaner.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Elegant UI Framework for Ruby

People watching this ticket

Pages