Class: Blind::EmptyTemplatePathSetDecorator

Inherits:
ActionView::Resolver
  • Object
show all
Defined in:
lib/blind.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_setObject (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