Sha256: 5d4bae12fdcec295e1aab66c21f2ce64137218e3be08c2d86dab4039166b122a

Contents?: true

Size: 634 Bytes

Versions: 3

Compression:

Stored size: 634 Bytes

Contents

Shoes.app do
  def collapsed
    @para = para(
      "'Scarpe' means shoes in Italian. 'Scarpe' also means Shoes in...",
      link("(show more)") { @para.destroy_self; @para = expanded }
    )
  end

  def expanded
    @para = para(
      "'Scarpe' means shoes in Italian. 'Scarpe' also means Shoes in modern Ruby and webview!</br>",
      "Scarpe isn't feature complete with any version of Shoes (yet?). We're initially targeting Shoes Classic. ",
      link("Learn more", click: "http://github.com/schwad/scarpe"),
      " ",
      link("(show less)") { @para.destroy_self; @para = collapsed }
    )
  end

  @para = collapsed
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
lacci-0.2.1 examples/link.rb
scarpe-0.2.1 examples/link.rb
scarpe-0.2.0 examples/link.rb