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.



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

#altObject (readonly)

Returns the value of attribute alt.



279
280
281
# File 'lib/sandals/view.rb', line 279

def alt
  @alt
end

#sourceObject (readonly)

Returns the value of attribute source.



279
280
281
# File 'lib/sandals/view.rb', line 279

def source
  @source
end