Sha256: 885e9df7301f140922354aca4c90a42797c8cf04254ae1032137a1f7bc065971
Contents?: true
Size: 292 Bytes
Versions: 23
Compression:
Stored size: 292 Bytes
Contents
require 'ramaze' require 'fjson' class User def to_yaml "Look, I'm YAML!".to_yaml end def to_json "Look, I'm YSON!".to_json end end class MainController < Ramaze::Controller helper :provide provides :yaml, :json def user display User.new end end Ramaze.start
Version data entries
23 entries across 23 versions & 5 rubygems