Class: Navigatrix::Rendering::Context

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/navigatrix/rendering/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wrappedObject

Returns the value of attribute wrapped

Returns:

  • (Object)

    the current value of wrapped



3
4
5
# File 'lib/navigatrix/rendering/context.rb', line 3

def wrapped
  @wrapped
end

Instance Method Details

#action_nameObject



15
16
17
# File 'lib/navigatrix/rendering/context.rb', line 15

def action_name
  attempt_delegation(:action_name)
end

#controller_nameObject



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

def controller_name
  attempt_delegation(:controller_name)
end

#current_pathObject



7
8
9
# File 'lib/navigatrix/rendering/context.rb', line 7

def current_path
  request.env["PATH_INFO"]
end