Class: DataMapper::Property::ParseKey

Inherits:
Object
  • Object
show all
Defined in:
lib/property/parse_key.rb

Instance Method Summary collapse

Instance Method Details

#dump(value) ⇒ Object



16
17
18
# File 'lib/property/parse_key.rb', line 16

def dump(value)
  value && value.to_s
end

#load(value) ⇒ Object



12
13
14
# File 'lib/property/parse_key.rb', line 12

def load(value)
  value.to_s
end

#serial?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/property/parse_key.rb', line 5

def serial?
  true
end

#to_child_keyObject



20
21
22
# File 'lib/property/parse_key.rb', line 20

def to_child_key
  Property::ParsePointer
end