Sha256: 0d9ab847da609004d08f76382a7658321a2483ba3ead07bc79df8d7d39155511

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

module Ramaze

  unless defined?(Action) # prevent problems for SourceReload

    # The Action holds information that is essential to render the action for a
    # request.

    class Action < Struct.new('Action', :controller, :method, :params, :template, :binding)
      def to_s
        %{#<Action method=#{method.inspect}, params=#{params.inspect} template=#{template.inspect}>}
      end

      def params=(*par)
        self[:params] = par.flatten.map{|pa| CGI.unescape(pa)}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.1.1 lib/ramaze/action.rb