Class: Proctor::Nodes
- Inherits:
-
Object
- Object
- Proctor::Nodes
- Defined in:
- lib/proctor/nodes.rb
Instance Method Summary collapse
- #all ⇒ Object
- #find_by_handle(handle) ⇒ Object
- #find_by_name(name) ⇒ Object
-
#initialize(app_files, params) ⇒ Nodes
constructor
A new instance of Nodes.
- #names ⇒ Object
Constructor Details
Instance Method Details
#all ⇒ Object
12 13 14 |
# File 'lib/proctor/nodes.rb', line 12 def all @all.sort {|a,b| a.name <=> b.name} end |
#find_by_handle(handle) ⇒ Object
20 21 |
# File 'lib/proctor/nodes.rb', line 20 def find_by_handle(handle) end |
#find_by_name(name) ⇒ Object
16 17 18 |
# File 'lib/proctor/nodes.rb', line 16 def find_by_name(name) @all.find {|node| node.name == name} end |
#names ⇒ Object
23 24 25 |
# File 'lib/proctor/nodes.rb', line 23 def names @all.map {|node| node.name}.sort end |