lib/gretel/link.rb in gretel-3.0.0.beta3 vs lib/gretel/link.rb in gretel-3.0.0.beta4
- old
+ new
@@ -1,10 +1,11 @@
module Gretel
class Link
attr_accessor :key, :text, :url
def initialize(key, text, url)
- @key, @text, @url = key, text, url
+ # Use accessors so plugins can override their behavior
+ self.key, self.text, self.url = key, text, url
end
def current!
@current = true
end
\ No newline at end of file