Sha256: aba5c1524f4c084bb7b82200cce4a071cd964a1fb73b62a08b8fe4ef4ecfc307

Contents?: true

Size: 434 Bytes

Versions: 16

Compression:

Stored size: 434 Bytes

Contents

module RailsConnector
  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

16 entries across 16 versions & 1 rubygems

Version Path
infopark_cloud_connector-7.1.0 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-7.0.2 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-7.0.1 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-7.0.0 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.9.5 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.9.4 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.9.3.1.36404185 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.9.2.1.125136549 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.9.1.3.22208381 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.9.0.3.197272233 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.8.3.174.51542603 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.8.3.115.227021242 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.8.3.73.75172665 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.8.3.2.153416031 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.8.3.67.110847540 lib/rails_connector/content_state_visitor.rb
infopark_cloud_connector-6.8.3.1.23895778 lib/rails_connector/content_state_visitor.rb