Method: Codegen::Sources::Base.converts_to
- Defined in:
- lib/codegen/sources/base.rb
.converts_to(*type) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/codegen/sources/base.rb', line 14 def self.converts_to * type if type.all? { |x| x.is_a? Symbol } self.convert_to = type else self.convert_to = type.map { |t| t.to_s.underscore.to_sym } end end |