Method: RETerm::Components::Image#initialize

Defined in:
lib/reterm/components/image.rb

#initialize(args = {}) ⇒ Image

Initialize the Image component

Parameters:

  • args (Hash) (defaults to: {})

    image params

Options Hash (args):

  • :file (String)

    path to the file containing the image


11
12
13
14
# File 'lib/reterm/components/image.rb', line 11

def initialize(args={})
  super
  @file = args[:file]
end