Class: Rmsgen::Link

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

Instance Method Summary collapse

Constructor Details

#initialize(text, href) ⇒ Link

Returns a new instance of Link.



3
4
5
6
# File 'lib/rmsgen/link.rb', line 3

def initialize(text, href)
  @text = text
  @href = href
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/rmsgen/link.rb', line 8

def to_s
  %{<a href='#{@href}'>#{@text}</a>}
end