Class: Bread::Manager::Actions::ActionScope
- Inherits:
- 
      Object
      
        - Object
- Bread::Manager::Actions::ActionScope
 
- Defined in:
- lib/bread/manager/actions/action_scope.rb
Instance Attribute Summary collapse
- 
  
    
      #crumbset  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute crumbset. 
Instance Method Summary collapse
- #crumbs(*symbols) ⇒ Object
- 
  
    
      #initialize(controller_scope, action_name)  ⇒ ActionScope 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ActionScope. 
Constructor Details
#initialize(controller_scope, action_name) ⇒ ActionScope
Returns a new instance of ActionScope.
| 8 9 10 11 12 13 | # File 'lib/bread/manager/actions/action_scope.rb', line 8 def initialize(controller_scope, action_name) @controller_scope = controller_scope @action_name = action_name @crumbset = [] prepend_parent_crumbs end | 
Instance Attribute Details
#crumbset ⇒ Object (readonly)
Returns the value of attribute crumbset.
| 6 7 8 | # File 'lib/bread/manager/actions/action_scope.rb', line 6 def crumbset @crumbset end | 
Instance Method Details
#crumbs(*symbols) ⇒ Object
| 15 16 17 | # File 'lib/bread/manager/actions/action_scope.rb', line 15 def crumbs(*symbols) @crumbset += symbols.flatten end |