Class: Gonzui::Content

Inherits:
Struct
  • Object
show all
Defined in:
lib/gonzui/content.rb,
lib/gonzui/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mtimeObject

Returns the value of attribute mtime

Returns:

  • (Object)

    the current value of mtime



13
14
15
# File 'lib/gonzui/content.rb', line 13

def mtime
  @mtime
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



13
14
15
# File 'lib/gonzui/content.rb', line 13

def path
  @path
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



13
14
15
# File 'lib/gonzui/content.rb', line 13

def text
  @text
end

Instance Method Details

#lengthObject



15
16
17
# File 'lib/gonzui/content.rb', line 15

def length
  self.text.length
end