Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- riak-client/lib/riak/core_ext/blank.rb,
riak-client/lib/riak/core_ext/to_param.rb,
riak-client/lib/riak/core_ext/extract_options.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) extract_options!
3 4 5 |
# File 'riak-client/lib/riak/core_ext/extract_options.rb', line 3 def last.is_a?(::Hash) ? pop : {} end |
- (Object) to_param
14 15 16 |
# File 'riak-client/lib/riak/core_ext/to_param.rb', line 14 def to_param map(&:to_param).join('/') end |
- (Object) to_query(key)
18 19 20 21 |
# File 'riak-client/lib/riak/core_ext/to_param.rb', line 18 def to_query(key) prefix = "#{key}[]" collect { |value| value.to_query(prefix) }.join '&' end |