Class: Upmin::Graph::CollectionNode
- Inherits:
-
Object
- Object
- Upmin::Graph::CollectionNode
- Defined in:
- lib/upmin/graph/collection_node.rb
Instance Method Summary collapse
- #collection ⇒ Object (also: #object)
- #depth ⇒ Object
- #editable? ⇒ Boolean
-
#initialize(collection, options = {}) ⇒ CollectionNode
constructor
A new instance of CollectionNode.
- #method_name ⇒ Object
- #nodes ⇒ Object
- #options ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(collection, options = {}) ⇒ CollectionNode
Returns a new instance of CollectionNode.
3 4 5 6 |
# File 'lib/upmin/graph/collection_node.rb', line 3 def initialize(collection, = {}) @collection = collection @options = end |
Instance Method Details
#collection ⇒ Object Also known as: object
8 9 10 |
# File 'lib/upmin/graph/collection_node.rb', line 8 def collection return @collection end |
#depth ⇒ Object
17 18 19 |
# File 'lib/upmin/graph/collection_node.rb', line 17 def depth return [:depth] ||= 0 end |
#editable? ⇒ Boolean
21 22 23 24 |
# File 'lib/upmin/graph/collection_node.rb', line 21 def editable? return [:editable] if [:editable] return [:editable] = false end |
#method_name ⇒ Object
30 31 32 |
# File 'lib/upmin/graph/collection_node.rb', line 30 def method_name return [:method_name] || nil end |
#nodes ⇒ Object
34 35 36 |
# File 'lib/upmin/graph/collection_node.rb', line 34 def nodes return @nodes ||= create_nodes end |
#options ⇒ Object
13 14 15 |
# File 'lib/upmin/graph/collection_node.rb', line 13 def return @options end |
#type ⇒ Object
26 27 28 |
# File 'lib/upmin/graph/collection_node.rb', line 26 def type return [:type] ||= determine_type end |