Module: GetArgs

Module | GetArgs
In: | lib/merb-action-args/get_args.rb

Used in mapping controller arguments to the params hash. NOTE: You must have the ‘ruby2ruby’ gem installed for this to work.

#### Examples

      # In PostsController
      def show(id)  #=> id is the same as params[:id]

### Methods

get_args

### Public Instance methods

get_args()

#### Returns

Array: | Method arguments and their default values.

#### Examples

      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

[Validate]