Class: LruFile

Inherits:
Struct
  • Object
show all
Includes:
SendChain
Defined in:
lib/hooks/all_files.rb

Overview

Insert the url of a Jekyll::Page into each LruFile instance, along with the Page reference todo: replace references to url and :url with reverse_url and :reverse_url

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SendChain

#new_chain, #send_chain, #substitute_and_send_chain_with, #substitute_chain_with

Instance Attribute Details

#pageObject

Returns the value of attribute page

Returns:

  • (Object)

    the current value of page



6
7
8
# File 'lib/hooks/all_files.rb', line 6

def page
  @page
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



6
7
8
# File 'lib/hooks/all_files.rb', line 6

def url
  @url
end

Instance Method Details

#<=>(other) ⇒ Object



9
10
11
# File 'lib/hooks/all_files.rb', line 9

def <=>(other)
  url <=> other.url
end