Class: ActionView::Digestor::Node
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | actionview/lib/action_view/digestor.rb |
Class Method Summary
Instance Attribute Summary
- #children readonly
- #logical_name readonly
- #name readonly
- #template readonly
Instance Method Summary
Constructor Details
.new(name, logical_name, template, children = []) ⇒ Node
# File 'actionview/lib/action_view/digestor.rb', line 83
def initialize(name, logical_name, template, children = []) @name = name @logical_name = logical_name @template = template @children = children end
Class Method Details
.create(name, logical_name, template, partial)
[ GitHub ]# File 'actionview/lib/action_view/digestor.rb', line 78
def self.create(name, logical_name, template, partial) klass = partial ? Partial : Node klass.new(name, logical_name, template, []) end
Instance Attribute Details
#children (readonly)
[ GitHub ]# File 'actionview/lib/action_view/digestor.rb', line 76
attr_reader :name, :logical_name, :template, :children
#logical_name (readonly)
[ GitHub ]#name (readonly)
[ GitHub ]# File 'actionview/lib/action_view/digestor.rb', line 76
attr_reader :name, :logical_name, :template, :children
#template (readonly)
[ GitHub ]# File 'actionview/lib/action_view/digestor.rb', line 76
attr_reader :name, :logical_name, :template, :children
Instance Method Details
#dependency_digest(finder, stack)
[ GitHub ]#digest(finder, stack = [])
[ GitHub ]# File 'actionview/lib/action_view/digestor.rb', line 90
def digest(finder, stack = []) ActiveSupport::Digest.hexdigest("#{template.source}-#{dependency_digest(finder, stack)}") end