class TwitterCldr::Localized::LocalizedArray
Public Instance Methods
code_points_to_string()
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 12 def code_points_to_string TwitterCldr::Utils::CodePoints.to_string(base_obj) end
each() { |val| ... }
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 37 def each if block_given? @base_obj.each { |val| yield val } else @base_obj.to_enum end end
formatter_const()
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 25 def formatter_const nil end
sort()
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 16 def sort TwitterCldr::Collation::Collator.new(locale).sort(base_obj).localize end
sort!()
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 20 def sort! TwitterCldr::Collation::Collator.new(locale).sort!(base_obj) self end
to_a()
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 29 def to_a @base_obj.dup end
to_sentence()
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 33 def to_sentence TwitterCldr::Formatters::ListFormatter.new(locale).format(base_obj) end
to_yaml(options = {})
click to toggle source
# File lib/twitter_cldr/localized/localized_array.rb, line 45 def to_yaml(options = {}) TwitterCldr::Utils::YAML.dump(@base_obj, options) end