Sha256: c3ffcbc432916d3c6bb29653d9239fdda3d5e9589ef5d90e8ad8df13a7b8d186
Contents?: true
Size: 652 Bytes
Versions: 5
Compression:
Stored size: 652 Bytes
Contents
class Test include React::Component def render user = User.find_by_email("mitch@catprint.com") div do "#{Time.now.to_s} #{user.first_name}".br "zip: #{user.address.zip}".br "todos: #{user.todo_items.collect { |todo| todo.title }.join(", ")}".br "first todo in find_string(mitch) scope: #{user.todo_items.find_string("mitch").first.title}".br "a comment was made by: #{user.todo_items.first.commenters.first.email}".br "some expensive math: #{user.expensive_math(13)}".br "and a server side method: #{user.detailed_name}".br.tap { user.first_name = "joe"; user.detailed_name! } end end end
Version data entries
5 entries across 5 versions & 1 rubygems