Sha256: b83a01feb21412c535020c91c901a9b6e4f26966084c9fe2560bd99e5f353fc2

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module RailsCrumbs
  class Crumb
    attr_accessor :name
    attr_accessor :path
    attr_accessor :options

    def initialize(name, path = nil, options = {})
      self.name     = name
      self.path     = path
      self.options = options
    end

    private

    def method_missing(name, *args)
      if options.has_key? name.to_sym
        options[name.to_sym]
      else
        super(name, *args)
      end
    end



  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_crumbs-0.0.2 lib/rails_crumbs/crumbs.rb