Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Prevent from being mutable in concrete Block implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhammerlund committed Apr 28, 2017
1 parent 66e1c13 commit 0329970
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Kava/Kava/Source/PageObjects/Infrastructure/Block.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ public final class ApplicationBlock : Block {
self.parentBlock = nil // The application is the absolute root
}

public var exists: Bool = true
public var exists: Bool {
return true
}

public func rootBlock() -> Block {
return self
Expand All @@ -130,7 +132,9 @@ open class PageBlock : Block {
self.init(parentBlock: block.parentBlock, session: block.session)
}

open var exists: Bool = false
open var exists: Bool {
return false
}

open func dismissKeyboard() -> Self {
return self
Expand Down

0 comments on commit 0329970

Please sign in to comment.