Method: WhatIs::ThisIs::Link#initialize

Defined in:
lib/whatis/thisis/link.rb

#initialize(title, section: nil, owner: nil, language: nil, description: nil) ⇒ Link

Returns a new instance of Link.



38
39
40
41
42
43
44
# File 'lib/whatis/thisis/link.rb', line 38

def initialize(title, section: nil, owner: nil, language: nil, description: nil)
  @owner = owner
  @title = title
  @language = language&.to_s
  @section = section unless section == ''
  @description = description
end