Module: Metaractor::ContextValidity

Defined in:
lib/metaractor/context_validity.rb

Instance Method Summary collapse

Instance Method Details

#invalid?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/metaractor/context_validity.rb', line 7

def invalid?
  @invalid || false
end

#invalidate!Object



11
12
13
# File 'lib/metaractor/context_validity.rb', line 11

def invalidate!
  @invalid = true
end

#valid?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/metaractor/context_validity.rb', line 3

def valid?
  !invalid?
end