Class: Quby::Compiler::Entities::Validation
- Inherits:
-
Object
- Object
- Quby::Compiler::Entities::Validation
- Defined in:
- lib/quby/compiler/entities/validation.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config) ⇒ Validation
constructor
A new instance of Validation.
- #type ⇒ Object
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
#config ⇒ Object (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
#type ⇒ Object
11 12 13 |
# File 'lib/quby/compiler/entities/validation.rb', line 11 def type config[:type] end |