Module: DataMapper::Is::InstanceMethods

Defined in:
lib/dm-is-sluggable/is/instance_methods.rb

Instance Method Summary collapse

Instance Method Details

#slug_max_lengthObject



23
24
25
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 23

def slug_max_length
  self.class.slug_max_length
end

#slug_permanent?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 19

def slug_permanent?
  self.class.slug_permanent?
end

#slug_propertyObject



7
8
9
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 7

def slug_property
  self.class.slug_property
end

#slug_property_nameObject



11
12
13
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 11

def slug_property_name
  self.class.slug_property_name
end

#slug_sourceObject



15
16
17
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 15

def slug_source
  self.class.slug_source
end

#slug_valueObject Also known as: to_param



27
28
29
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 27

def slug_value
  send slug_property_name
end