Class: TimePoint::Classification
Class Attribute Summary collapse
-
.order ⇒ Object
readonly
Returns the value of attribute order.
-
.translations ⇒ Object
readonly
Returns the value of attribute translations.
Class Method Summary collapse
Class Attribute Details
.order ⇒ Object (readonly)
Returns the value of attribute order.
73 74 75 |
# File 'lib/time_point.rb', line 73 def order @order end |
.translations ⇒ Object (readonly)
Returns the value of attribute translations.
73 74 75 |
# File 'lib/time_point.rb', line 73 def translations @translations end |
Class Method Details
.abbreviations ⇒ Object
75 76 77 78 79 80 |
# File 'lib/time_point.rb', line 75 def abbreviations @abbreviations ||= translations.inject({}) do |h,(k,v)| h[v] = k unless h.has_key?(v) && h[v].length < k.length h end end |