Class: Bread::Manager::Crumbs::CrumbScope
- Inherits:
- 
      Object
      
        - Object
- Bread::Manager::Crumbs::CrumbScope
 
- Defined in:
- lib/bread/manager/crumbs/crumb_scope.rb
Instance Attribute Summary collapse
- 
  
    
      #controller  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute controller. 
- 
  
    
      #crumbset  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute crumbset. 
Instance Method Summary collapse
- #h ⇒ Object
- 
  
    
      #initialize(controller)  ⇒ CrumbScope 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CrumbScope. 
- #to(text, path, options = {}) ⇒ Object
Constructor Details
#initialize(controller) ⇒ CrumbScope
Returns a new instance of CrumbScope.
| 8 9 10 11 12 | # File 'lib/bread/manager/crumbs/crumb_scope.rb', line 8 def initialize(controller) @controller = controller @crumbset = [] bring_instance_vars(controller) end | 
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
| 6 7 8 | # File 'lib/bread/manager/crumbs/crumb_scope.rb', line 6 def controller @controller end | 
#crumbset ⇒ Object (readonly)
Returns the value of attribute crumbset.
| 6 7 8 | # File 'lib/bread/manager/crumbs/crumb_scope.rb', line 6 def crumbset @crumbset end | 
Instance Method Details
#h ⇒ Object
| 14 15 16 | # File 'lib/bread/manager/crumbs/crumb_scope.rb', line 14 def h controller.view_context end | 
#to(text, path, options = {}) ⇒ Object
| 18 19 20 | # File 'lib/bread/manager/crumbs/crumb_scope.rb', line 18 def to(text, path, ={}) @crumbset << Crumb.new(@controller, text, path, ={}) end |