Sha256: ad69b8f0cc650ae01bde63f76b1cfac7632fb991c2ff7bfe00d5b0aada6363bc

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

require 'fattr'
require File.expand_path("shared_style_attributes", File.dirname(__FILE__))

class Germinate::Insertion
  include Germinate::SharedStyleAttributes

  attr_reader :library
  attr_reader :selector

  def initialize(selector, library, template={})
    copy_shared_style_attributes_from(template)
    @selector = selector
    @library  = library
  end

  def resolve
    returning(library[selector]) do |hunk|
      hunk.copy_shared_style_attributes_from(self, false)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devver-germinate-1.1.0 lib/germinate/insertion.rb