static public Method

Base.format(

Returns the current format, default is ActiveResource::Formats::XmlFormat

Source Code

# File active_resource/base.rb, line 199
def format # :nodoc:
  read_inheritable_attribute("format") || ActiveResource::Formats[:xml]
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.