Class: D3::SequentialScale

Inherits:
Object
  • Object
show all
Includes:
Native
Defined in:
lib/opal/d3/sequential_scale.rb

Instance Method Summary collapse

Methods included from Native

included, #initialize

Instance Method Details

#call(t) ⇒ Object



5
6
7
# File 'lib/opal/d3/sequential_scale.rb', line 5

def call(t)
  @native.call(t)
end

#copyObject



12
13
14
# File 'lib/opal/d3/sequential_scale.rb', line 12

def copy
  self.class.new @native.JS.copy
end

#interpolator(&block) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/opal/d3/sequential_scale.rb', line 16

def interpolator(&block)
  if block_given?
    @native.JS.interpolator(block)
    self
  else
    @native.JS.interpolator
  end
end