Class: Quby::Compiler::Entities::Validation

Inherits:
Object
  • Object
show all
Defined in:
lib/quby/compiler/entities/validation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Validation

Returns a new instance of Validation.



7
8
9
# File 'lib/quby/compiler/entities/validation.rb', line 7

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/quby/compiler/entities/validation.rb', line 5

def config
  @config
end

Instance Method Details

#typeObject



11
12
13
# File 'lib/quby/compiler/entities/validation.rb', line 11

def type
  config[:type]
end