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



26
27
28
# File 'lib/racket/current.rb', line 26

def action
  @action
end

#action_resultObject

Returns the value of attribute action_result

Returns:

  • (Object)

    the current value of action_result



26
27
28
# File 'lib/racket/current.rb', line 26

def action_result
  @action_result
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



26
27
28
# File 'lib/racket/current.rb', line 26

def params
  @params
end