Method: RSpecSystem::Node.node_from_yaml
- Defined in:
- lib/rspec-system/node.rb
.node_from_yaml(nodeset, k, v, custom_prefabs_path) ⇒ RSpecSystem::Node
Static helper for generating a node direct from the hash returned by the nodeset YAML file.
16 17 18 19 20 21 22 23 |
# File 'lib/rspec-system/node.rb', line 16 def self.node_from_yaml(nodeset, k, v, custom_prefabs_path) RSpecSystem::Node.new( :nodeset => nodeset, :custom_prefabs_path => custom_prefabs_path, :name => k, :prefab => v['prefab'] ) end |