class Middleman::Dependencies::Vertex
def ==(other)
def ==(other) key == other.key end
def full_path(root, file)
def full_path(root, file) File.expand_path(file, root) end
def initialize(key, attributes)
def initialize(key, attributes) @key = key @attributes = attributes end
def matches_resource?(_resource)
def matches_resource?(_resource) false end
def merge!(other)
def merge!(other) @attributes.merge!(other.attributes) end
def relative_path(root, file)
def relative_path(root, file) Pathname(File.expand_path(file)).relative_path_from(root).to_s end
def serialize(attributes = {})
def serialize(attributes = {}) { 'key' => @key.to_s, 'type' => type_id.to_s, 'attrs' => @attributes.merge(attributes).stringify_keys } end
def to_s
def to_s "<Vertex type=#{type_id} key=#{key}>" end
def type_id
def type_id self.class.const_get :TYPE_ID end
def valid?
def valid? raise NotImplementedError end