Module: Type
- Defined in:
- lib/arkana/models/type.rb
Overview
A namespace that defines language-agnostic variable types.
Constant Summary collapse
- STRING =
:string- BOOLEAN =
:boolean
Class Method Summary collapse
Class Method Details
.new(string_value:) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/arkana/models/type.rb', line 8 def self.new(string_value:) case string_value when "true", "false" BOOLEAN else STRING end end |