lib/rubyvis/mark/rule.rb in rubyvis-0.1.5 vs lib/rubyvis/mark/rule.rb in rubyvis-0.1.6

- old
+ new

@@ -1,12 +1,13 @@ module Rubyvis + # Alias for Rubyvis::Rule def self.Rule Rubyvis::Rule end class Rule < Mark include LinePrototype @properties=Mark.properties.dup - attr_accessor_dsl :width, :height, :line_width, [:stroke_style, lambda {|d| pv.color(d)}] + attr_accessor_dsl :width, :height, :line_width, [:stroke_style, lambda {|d| Rubyvis.color(d)}] def self.defaults Rule.new.extend(Mark.defaults).line_width(1).stroke_style('black').antialias(false) end def type 'rule'