Sha256: 5cf6de47d952f30a34fc23832486f82c0b985f550f6de41ff7520ff8233ca6a8
Contents?: true
Size: 344 Bytes
Versions: 10
Compression:
Stored size: 344 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
10 entries across 10 versions & 1 rubygems