lib/dropbox/revision.rb
# Allows you to access metadata attributes directly:
#
#  revision.size #=> 10526
#
# A NoMethodError will be raised if the metadata has not yet been loaded for
# this revision, so be sure to call metadata_loaded? beforehand.
Allows you to access metadata attributes directly:
revision.size #=> 10526

A NoMethodError will be raised if the metadata has not yet been loaded for
this revision, so be sure to call metadata_loaded. beforehand.
Allows you to access metadata attributes directly : revision . size # = > 10526 A NoMethodError will be raised if the metadata has not yet been loaded for this revision so be sure to call metadata_loaded . beforehand .
def method_missing(meth, *args)
      if args.empty? then
        if @metadata and @metadata.include?(meth) then
          return @metadata[meth]
        else
          super
        end
      else
        super
      end
    end
def method_missing ( meth , * args ) if args . empty? then if @metadata and @metadata . include? ( meth ) then return @metadata [ meth ] else super end else super end end
Allows you to access metadata attributes directly:
revision.size #=> 10526
Allows you to access metadata attributes directly : revision . size # = > 10526
meth
args