Class: D3::ContinuousScale
- Inherits:
-
Object
- Object
- D3::ContinuousScale
- Includes:
- Native
- Defined in:
- lib/opal/d3/continuous_scale.rb
Instance Method Summary collapse
Methods included from Native
Instance Method Details
#call(t) ⇒ Object
4 5 6 |
# File 'lib/opal/d3/continuous_scale.rb', line 4 def call(t) @native.call(t) end |
#interpolate(&block) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/opal/d3/continuous_scale.rb', line 17 def interpolate(&block) if block @native.JS.interpolate(block) self else @native.JS.interpolate end end |