Module | GetArgs |
In: |
lib/merb-action-args/get_args.rb
lib/merb-action-args/jruby_args.rb |
Used in mapping controller arguments to the params hash. NOTE: You must have the ‘ruby2ruby’ gem installed for this to work.
# In PostsController def show(id) #=> id is the same as params[:id]
Methods | = | org.jruby.internal.runtime.methods |
Array: | Method arguments and their default values. |
class Example def hello(one,two="two",three) end def goodbye end end Example.instance_method(:hello).get_args #=> [[:one], [:two, "two"], [:three, "three"]] Example.instance_method(:goodbye).get_args #=> nil