class Hiptest::Nodes::Actionwords

Attributes

no_implement[R]
to_implement[R]

Public Class Methods

new(actionwords = []) click to toggle source
Calls superclass method
# File lib/hiptest-publisher/nodes.rb, line 428
def initialize(actionwords = [])
  super()
  @children = {actionwords: actionwords}
  mark_actionwords_for_implementation
  index_actionwords
end

Public Instance Methods

find_actionword(name) click to toggle source
# File lib/hiptest-publisher/nodes.rb, line 435
def find_actionword(name)
  return @actionwords_index[name]
end

Private Instance Methods

index_actionwords() click to toggle source
# File lib/hiptest-publisher/nodes.rb, line 453
def index_actionwords
  @actionwords_index = {}

  @children[:actionwords].each do |aw|
    @actionwords_index[aw.children[:name]] = aw
  end
end
mark_actionwords_for_implementation() click to toggle source
# File lib/hiptest-publisher/nodes.rb, line 440
def mark_actionwords_for_implementation
  @to_implement = []
  @no_implement = []

  @children[:actionwords].each do |aw|
    if aw.must_be_implemented?
      @to_implement << aw
    else
      @no_implement << aw
    end
  end
end