Sha256: d1ffaa43ae9e2b9888c887eb61e110f1f47d52b3e009e720cc7fb09ca9219e4e

Contents?: true

Size: 321 Bytes

Versions: 6

Compression:

Stored size: 321 Bytes

Contents

module Gretel
  class Link
    attr_accessor :key, :text, :url

    def initialize(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

    def current?
      !!@current
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gretel-3.0.2 lib/gretel/link.rb
gretel-3.0.1 lib/gretel/link.rb
gretel-3.0.0 lib/gretel/link.rb
gretel-3.0.0.beta6 lib/gretel/link.rb
gretel-3.0.0.beta5 lib/gretel/link.rb
gretel-3.0.0.beta4 lib/gretel/link.rb