Class: Plotly::Line
Constant Summary collapse
- ATTRS =
%i(width color).freeze
Instance Method Summary collapse
-
#initialize(opts) ⇒ Line
constructor
A new instance of Line.
Methods included from Castable
Constructor Details
#initialize(opts) ⇒ Line
Returns a new instance of Line.
12 13 14 15 |
# File 'lib/plotly/line.rb', line 12 def initialize(opts) return unless opts.is_a?(Hash) opts.each { |k, v| instance_variable_set("@#{k}", v) } end |