Class: Realize::Type::Base
- Inherits:
-
Object
- Object
- Realize::Type::Base
- Defined in:
- lib/realize/type/base.rb
Overview
Common code for all Type Transformer subclasses.
Instance Attribute Summary collapse
-
#nullable ⇒ Object
readonly
Returns the value of attribute nullable.
Instance Method Summary collapse
-
#initialize(nullable: false) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(nullable: false) ⇒ Base
Returns a new instance of Base.
18 19 20 21 22 |
# File 'lib/realize/type/base.rb', line 18 def initialize(nullable: false) @nullable = nullable || false freeze end |
Instance Attribute Details
#nullable ⇒ Object (readonly)
Returns the value of attribute nullable.
16 17 18 |
# File 'lib/realize/type/base.rb', line 16 def nullable @nullable end |