Class: WebpackDriver::Asset
- Inherits:
-
Object
- Object
- WebpackDriver::Asset
- Defined in:
- lib/webpack_driver/asset.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(file, size) ⇒ Asset
constructor
A new instance of Asset.
Constructor Details
#initialize(file, size) ⇒ Asset
6 7 8 9 |
# File 'lib/webpack_driver/asset.rb', line 6 def initialize(file, size) @file = file @size = size end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
4 5 6 |
# File 'lib/webpack_driver/asset.rb', line 4 def file @file end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
4 5 6 |
# File 'lib/webpack_driver/asset.rb', line 4 def size @size end |