Sha256: 2653236f75e60d5af514e21c619b214e021bb92836b884b75291c487d4059626
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
module ExtraActions def self.included(base) base.show_action(:funky_inherited_method) end def funky_inherited_method(foo, bar) "#{foo} #{bar}" end end class ActionArgs < Merb::Controller include ExtraActions def nada "NADA" end def index(foo) foo end def multi(foo, bar) "#{foo} #{bar}" end def defaults(foo, bar = "bar") "#{foo} #{bar}" end def defaults_mixed(foo, bar ="bar", baz = "baz") "#{foo} #{bar} #{baz}" end define_method :dynamic_define_method do "mos def" end def with_default_nil(foo, bar = nil) "#{foo} #{bar}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb-action-args-0.9.13 | spec/controllers/action-args.rb |