Sha256: 5b9c898618c71f737f5c474fcad999c796948f9414fbe44b4368ecd7307259ff
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
module Restfulie module Server # adds respond_to and has_state methods to resources module State # overrides the respond_to? method to check if this method is contained or was defined by a state def respond_to?(sym) has_state(sym.to_s) || super(sym) end # returns true if this resource has a state named name def has_state(name) !@_possible_states[name].nil? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restfulie-0.3 | lib/restfulie/server/state.rb |