Class: Uchi::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/uchi/context.rb

Overview

Context class for Uchi framework, used to encapsulate request-specific data and state.

Instance Attribute Summary collapse

Instance Attribute Details

#user ⇒ User?

Returns the user associated with the context.

Returns:

  • (User, nil) —

    the user associated with the context



8
9
10
# File 'lib/uchi/context.rb', line 8

def user
  @user
end

#view ⇒ Uchi::View?

Returns the view associated with the context.

Returns:

  • (Uchi::View, nil) —

    the view associated with the context



11
12
13
# File 'lib/uchi/context.rb', line 11

def view
  @view
end