Sha256: d38dfed9d6f99dad6e0d7e7f4fe8e81046a798cf6149488cdec8427c9beb5d07
Contents?: true
Size: 428 Bytes
Versions: 57
Compression:
Stored size: 428 Bytes
Contents
module Scrivito class ContentStateVisitor def initialize(start_content_state) @next_content_state, @visited = start_content_state, [] end def visit_next if content_state = @next_content_state @visited << content_state @next_content_state = content_state.from_content_state content_state end end def visited_except_current @visited[0..-2] end end end
Version data entries
57 entries across 57 versions & 1 rubygems