Class: Racket::Current::State

Inherits:
Struct
  • Object
show all
Defined in:
lib/racket/current.rb

Overview

Holds Racket internal state, available to the controller instance but mostly used for keeping track of things that don’t belong to the actual request.

Instance Attribute Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



28
29
30
# File 'lib/racket/current.rb', line 28

def action
  @action
end

#action_resultObject

Returns the value of attribute action_result

Returns:

  • (Object)

    the current value of action_result



28
29
30
# File 'lib/racket/current.rb', line 28

def action_result
  @action_result
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



28
29
30
# File 'lib/racket/current.rb', line 28

def params
  @params
end