Class: Sandals::Image
- Inherits:
-
Object
- Object
- Sandals::Image
- Defined in:
- lib/sandals/view.rb
Instance Attribute Summary collapse
-
#alt ⇒ Object
readonly
Returns the value of attribute alt.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, alt:) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(source, alt:) ⇒ Image
Returns a new instance of Image.
281 282 283 284 |
# File 'lib/sandals/view.rb', line 281 def initialize(source, alt:) @source = source.to_s @alt = alt.to_s end |
Instance Attribute Details
#alt ⇒ Object (readonly)
Returns the value of attribute alt.
279 280 281 |
# File 'lib/sandals/view.rb', line 279 def alt @alt end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
279 280 281 |
# File 'lib/sandals/view.rb', line 279 def source @source end |