Class: Blind::EmptyTemplatePathSetDecorator
- Inherits:
-
ActionView::Resolver
- Object
- ActionView::Resolver
- Blind::EmptyTemplatePathSetDecorator
- Defined in:
- lib/blind.rb
Instance Attribute Summary collapse
-
#original_path_set ⇒ Object
readonly
Returns the value of attribute original_path_set.
Instance Method Summary collapse
- #find_all(*args) ⇒ Object
-
#initialize(original_path_set) ⇒ EmptyTemplatePathSetDecorator
constructor
A new instance of EmptyTemplatePathSetDecorator.
Constructor Details
#initialize(original_path_set) ⇒ EmptyTemplatePathSetDecorator
Returns a new instance of EmptyTemplatePathSetDecorator.
46 47 48 |
# File 'lib/blind.rb', line 46 def initialize original_path_set @original_path_set = original_path_set end |
Instance Attribute Details
#original_path_set ⇒ Object (readonly)
Returns the value of attribute original_path_set.
44 45 46 |
# File 'lib/blind.rb', line 44 def original_path_set @original_path_set end |
Instance Method Details
#find_all(*args) ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/blind.rb', line 50 def find_all *args original_path_set.find_all(*args).collect do |template| ::ActionView::Template.new( '', template.identifier, template.handler, { virtual_path: template.virtual_path, format: template.formats } ) end end |