Class: RGL::DOT::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/laser/third_party/rgl/rdot.rb

Overview

Ancestor of Edge, Node, and Graph.

Direct Known Subclasses

Edge, Graph, Node

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}, option_list = []) ⇒ Element

: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

#nameObject

Returns the value of attribute name



136
137
138
# File 'lib/laser/third_party/rgl/rdot.rb', line 136

def name
  @name
end

#optionsObject

Returns the value of attribute options



136
137
138
# File 'lib/laser/third_party/rgl/rdot.rb', line 136

def options
  @options
end