Class: Textile

Inherits:
RedCloth::TextileDoc
  • Object
show all
Includes:
Mongoid::Fields::Serializable
Defined in:
app/models/textile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#maxObject

Returns the value of attribute max.



6
7
8
# File 'app/models/textile.rb', line 6

def max
  @max
end

Instance Method Details

#deserialize(object) ⇒ Object



11
12
13
14
# File 'app/models/textile.rb', line 11

def deserialize(object)
  object = '' unless object 
  RedCloth.new(object)
end

#serialize(object) ⇒ Object



8
9
10
# File 'app/models/textile.rb', line 8

def serialize(object) 
  object.to_s
end