Sha256: cbf17da0268d0905f4367184292660a882a63359602aab9daba50ae4c54410e6

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

module Rubyvis
  def self.Anchor(target)
    Rubyvis::Anchor.new(target)
  end

  class Anchor < Mark
    @properties=Mark.properties.dup
    attr_accessor_dsl [:name, lambda {|d| d.to_s}]

    def initialize(target)
      super()
      self.target=target
      self.parent=target.parent
    end
    def extend(proto)
      @proto=proto
      return self
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubyvis-0.1.4 lib/rubyvis/mark/anchor.rb
rubyvis-0.1.3 lib/rubyvis/mark/anchor.rb