Class: Sandals::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/sandals/view.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, alt:) ⇒ Image

Returns a new instance of Image.



259
260
261
262
# File 'lib/sandals/view.rb', line 259

def initialize(source, alt:)
  @source = source.to_s
  @alt = alt.to_s
end

Instance Attribute Details

#altObject (readonly)

Returns the value of attribute alt.



257
258
259
# File 'lib/sandals/view.rb', line 257

def alt
  @alt
end

#sourceObject (readonly)

Returns the value of attribute source.



257
258
259
# File 'lib/sandals/view.rb', line 257

def source
  @source
end