Class: GhIssues::TextRenderer

Inherits:
Redcarpet::Render::StripDown
  • Object
show all
Defined in:
lib/gh_issues/cli.rb

Instance Method Summary collapse

Instance Method Details

#image(link, title, content) ⇒ Object



15
16
17
18
19
# File 'lib/gh_issues/cli.rb', line 15

def image(link, title, content)
  link = "link" if link.length > WRAP_TEXT_AT
  content &&= content + " "
  "[#{content}]-[#{link}]"
end