Class: Jekyll::StaticFile

Inherits:
Object
  • Object
show all
Defined in:
lib/asset_pages/monkey_patches.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



22
23
24
# File 'lib/asset_pages/monkey_patches.rb', line 22

def base
  @base
end

#dirObject (readonly)

Returns the value of attribute dir.



23
24
25
# File 'lib/asset_pages/monkey_patches.rb', line 23

def dir
  @dir
end

#nameObject (readonly)

Returns the value of attribute name.



24
25
26
# File 'lib/asset_pages/monkey_patches.rb', line 24

def name
  @name
end

#siteObject (readonly)

Returns the value of attribute site.



21
22
23
# File 'lib/asset_pages/monkey_patches.rb', line 21

def site
  @site
end

Instance Method Details

#==(o) ⇒ Object Also known as: eql?



26
27
28
29
30
31
# File 'lib/asset_pages/monkey_patches.rb', line 26

def ==(o)
  @site == o.site \
    && @base == o.base \
    && @dir == o.dir \
    && @name == o.name
end

#hashObject



35
36
37
# File 'lib/asset_pages/monkey_patches.rb', line 35

def hash
  @site.hash ^ @base.hash ^ @dir.hash ^ @name.hash
end