Class: RGL::DOT::Element
- Inherits:
-
Object
- Object
- RGL::DOT::Element
- Defined in:
- lib/laser/third_party/rgl/rdot.rb
Overview
Ancestor of Edge, Node, and Graph.
Instance Attribute Summary (collapse)
-
- (Object) name
Returns the value of attribute name.
-
- (Object) options
Returns the value of attribute options.
Instance Method Summary (collapse)
-
- (Element) initialize(params = {}, option_list = [])
constructor
:nodoc:.
Constructor Details
- (Element) initialize(params = {}, option_list = [])
:nodoc:
138 139 140 141 142 143 144 |
# File 'lib/laser/third_party/rgl/rdot.rb', line 138 def initialize (params = {}, option_list = []) # :nodoc: @name = params['name'] ? params['name'] : nil @options = {} option_list.each{ |i| @options[i] = params[i] if params[i] } end |
Instance Attribute Details
- (Object) name
Returns the value of attribute name
136 137 138 |
# File 'lib/laser/third_party/rgl/rdot.rb', line 136 def name @name end |
- (Object) options
Returns the value of attribute options
136 137 138 |
# File 'lib/laser/third_party/rgl/rdot.rb', line 136 def @options end |