module MSS::Core::Data::MethodMissingProxy

Public Instance Methods

==(other)
Alias for: eql?
[](index_or_key) click to toggle source
# File lib/mss/core/data.rb, line 71
def [] index_or_key
  Data.cast(@data[index_or_key])
end
clone()
Alias for: dup
dup() click to toggle source
# File lib/mss/core/data.rb, line 86
def dup
  Data.cast(@data.dup)
end
Also aliased as: clone
eql?(other) click to toggle source

@return [Boolean] Returns true if the passed object equals

the wrapped array.
# File lib/mss/core/data.rb, line 77
def eql? other
  if other.is_a?(MethodMissingProxy)
    @data == other._data
  else
    @data == other
  end
end
Also aliased as: ==
id() click to toggle source

@api private

# File lib/mss/core/data.rb, line 67
def id
  self[:id] || self.id
end

Protected Instance Methods

_data() click to toggle source
# File lib/mss/core/data.rb, line 104
def _data
  @data
end
method_missing(*args) { |*flatten.map{|v| cast}| ... } click to toggle source
# File lib/mss/core/data.rb, line 93
def method_missing *args, &block
  if block_given?
    return_value = @data.send(*args) do |*values|
      yield(*values.flatten.map{|v| Data.cast(v) })
    end
    Data.cast(return_value)
  else
    Data.cast(@data.send(*args))
  end
end