class Hamster::Vector

Definitions

Public Instance Methods

as_json(options = nil) click to toggle source
# File lib/nrser/gem_ext/hamster/vector.rb, line 38
def as_json options = nil
  to_mutable.as_json options
end
to_mutable() click to toggle source

Instance Methods

# File lib/nrser/gem_ext/hamster/vector.rb, line 31
def to_mutable
  each_with_object( [] ) { |entry, array|
    array << Hamster.to_mutable( entry )
  }
end
to_yaml(*args, &block) click to toggle source
# File lib/nrser/gem_ext/hamster/vector.rb, line 43
def to_yaml *args, &block
  to_mutable.to_yaml *args, &block
end