Sha256: 68a726358e08c77b988c01f9a0271e545c83ba583043ce8635c62362a3e5cdb4

Contents?: true

Size: 269 Bytes

Versions: 3

Compression:

Stored size: 269 Bytes

Contents

module Gretel
  class ViewLink
    attr_reader :text, :url, :options, :current
    
    def initialize(text, url, options, current = false)
      @text, @url, @options, @current = text, url, options, current
    end
    
    def current?
      current
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gretel-1.2.1 lib/gretel/view_link.rb
gretel-1.2.0 lib/gretel/view_link.rb
gretel-1.1.6 lib/gretel/view_link.rb