Class: Minidoc::Value

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Defined in:
lib/minidoc/value.rb

Direct Known Subclasses

ReadOnly

Instance Method Summary collapse

Instance Method Details

#as_valueObject



18
19
20
# File 'lib/minidoc/value.rb', line 18

def as_value
  self
end

#to_keyObject



10
11
12
# File 'lib/minidoc/value.rb', line 10

def to_key
  [id.to_s]
end

#to_paramObject



14
15
16
# File 'lib/minidoc/value.rb', line 14

def to_param
  id.to_s
end