Class: Glossarist::Asset
- Inherits:
-
Object
- Object
- Glossarist::Asset
- Defined in:
- lib/glossarist/asset.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #eql?(asset) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(path) ⇒ Asset
constructor
A new instance of Asset.
Constructor Details
#initialize(path) ⇒ Asset
Returns a new instance of Asset.
10 11 12 |
# File 'lib/glossarist/asset.rb', line 10 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
8 9 10 |
# File 'lib/glossarist/asset.rb', line 8 def path @path end |
Instance Method Details
#eql?(asset) ⇒ Boolean
14 15 16 |
# File 'lib/glossarist/asset.rb', line 14 def eql?(asset) path == asset.path end |
#hash ⇒ Object
18 19 20 |
# File 'lib/glossarist/asset.rb', line 18 def hash path.hash end |