Module: OSPFv2::CommonMetric
- Included in:
- RouterLink, Summary_Base
- Defined in:
- lib/ie/metric.rb
Instance Method Summary collapse
Instance Method Details
#<<(metric) ⇒ Object
67 68 69 70 71 |
# File 'lib/ie/metric.rb', line 67 def <<(metric) @mt_metrics ||=[] @mt_metrics << MtMetric.new(metric) self end |
#mt_metrics=(val) ⇒ Object
63 64 65 |
# File 'lib/ie/metric.rb', line 63 def mt_metrics=(val) [val].flatten.each { |x| self << x } end |