Class: Peruby::Validator::State

Inherits:
Data
  • Object
show all
Defined in:
lib/peruby/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#declaredObject (readonly)

Returns the value of attribute declared

Returns:

  • (Object)

    the current value of declared



6
7
8
# File 'lib/peruby/validator.rb', line 6

def declared
  @declared
end

#strictObject (readonly)

Returns the value of attribute strict

Returns:

  • (Object)

    the current value of strict



6
7
8
# File 'lib/peruby/validator.rb', line 6

def strict
  @strict
end

#warningsObject (readonly)

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



6
7
8
# File 'lib/peruby/validator.rb', line 6

def warnings
  @warnings
end

Instance Method Details

#nestedObject



7
# File 'lib/peruby/validator.rb', line 7

def nested = State.new(strict.dup, warnings.dup, declared.dup)