Class: Attrio::Types::Base

Inherits:
Object show all
Defined in:
lib/attrio/types/base.rb

Direct Known Subclasses

Array, Boolean, Date, DateTime, Float, Integer, Symbol, Time

Class Method Summary collapse

Class Method Details

.default_reader_aliases(method_name) ⇒ Object



16
17
18
# File 'lib/attrio/types/base.rb', line 16

def self.default_reader_aliases(method_name)
  []
end

.default_writer_aliases(method_name) ⇒ Object



20
21
22
# File 'lib/attrio/types/base.rb', line 20

def self.default_writer_aliases(method_name)
  []
end

.typecast(value, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/attrio/types/base.rb', line 8

def self.typecast(value, options = {})
  raise NotImplementedError
end

.typecasted?(value, options = {}) ⇒ Boolean

Returns:



12
13
14
# File 'lib/attrio/types/base.rb', line 12

def self.typecasted?(value, options = {})
  false
end