class Docks::Templates::Template
Attributes
layout[R]
path[R]
Public Class Methods
new(name, options = {})
click to toggle source
Calls superclass method
# File lib/docks/templates.rb, line 6 def self.new(name, options = {}) name.kind_of?(self) ? name : super end
new(name, options = {})
click to toggle source
# File lib/docks/templates.rb, line 10 def initialize(name, options = {}) @path = name @matcher = options[:matches] || options[:for] @layout = options[:layout] end
Public Instance Methods
matches?(id)
click to toggle source
# File lib/docks/templates.rb, line 20 def matches?(id) !(@matcher =~ id).nil? end