Class: Vita::Highlight

Inherits:
Struct
  • Object
show all
Defined in:
lib/vita/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#match?Object

Returns the value of attribute match?

Returns:

  • (Object)

    the current value of match?



12
13
14
# File 'lib/vita/link.rb', line 12

def match?
  @match?
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



12
13
14
# File 'lib/vita/link.rb', line 12

def text
  @text
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/vita/link.rb', line 17

def empty?
  text.empty?
end

#to_sObject



13
14
15
# File 'lib/vita/link.rb', line 13

def to_s
  text
end