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
-
Micah Martin December 9th, 2008 @ 01:47 PM
- Tag set to feature_request
- Milestone changed from Limelight 0.2 to Limelight 0.4
-
Micah Martin August 17th, 2009 @ 05:17 PM
- Milestone changed from Limelight 0.4 to Limelight 0.5
-
Micah Martin October 29th, 2009 @ 08:50 PM
- Milestone changed from Limelight 0.5 to Limelight 0.6
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.
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