Sha256: de6c3606d7d01ff5a49d8b618d4ee594d53e3492ed7e04a32b43411498713d04
Contents?: true
Size: 354 Bytes
Versions: 15
Compression:
Stored size: 354 Bytes
Contents
class DecoratorWithApplicationHelper < Draper::Base def uses_hello_world h.hello_world end def sample_content h.content_tag :span, "Hello, World!" end def sample_link h.link_to "Hello", "/World" end def sample_truncate h.truncate("Once upon a time", :length => 7) end def length "overridden" end end
Version data entries
15 entries across 15 versions & 1 rubygems