Class: D3::SymbolGenerator
- Inherits:
-
Object
- Object
- D3::SymbolGenerator
- Includes:
- Native
- Defined in:
- lib/opal/d3/symbol.rb
Instance Method Summary collapse
Methods included from Native
Instance Method Details
#call(*args) ⇒ Object
5 6 7 |
# File 'lib/opal/d3/symbol.rb', line 5 def call(*args) @native.call(*args) end |
#type(new_value = `undefined`, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/opal/d3/symbol.rb', line 11 def type(new_value=`undefined`, &block) if block_given? @native.JS.type{|*args| yield(*args).to_n} self elsif `new_value === undefined` D3::SymbolType.new @native.JS.type else @native.JS.type(new_value.to_n) self end end |
#type=(new_value) ⇒ Object
23 24 25 26 |
# File 'lib/opal/d3/symbol.rb', line 23 def type=(new_value) @native.type(new_value.to_n) self end |