Class: Havox::RouteFiller
- Inherits:
-
Object
- Object
- Havox::RouteFiller
- Defined in:
- lib/havox/classes/route_filler.rb
Constant Summary collapse
- ROUTE_REGEX =
%r(^ (?<protocol_char>[A-Z\s]{1})[>\s]{1}[\*\s]{1}\s (?<network>([0-9]{1,3}\.){3}[0-9]{1,3}\/[0-9]{1,2})?.+$ )x
Instance Attribute Summary collapse
-
#filled_routes ⇒ Object
readonly
Returns the value of attribute filled_routes.
Instance Method Summary collapse
-
#initialize(raw_routes) ⇒ RouteFiller
constructor
A new instance of RouteFiller.
Constructor Details
#initialize(raw_routes) ⇒ RouteFiller
Returns a new instance of RouteFiller.
10 11 12 13 14 |
# File 'lib/havox/classes/route_filler.rb', line 10 def initialize(raw_routes) @raw_routes = raw_routes @filled_routes = [] fill_routes end |
Instance Attribute Details
#filled_routes ⇒ Object (readonly)
Returns the value of attribute filled_routes.
3 4 5 |
# File 'lib/havox/classes/route_filler.rb', line 3 def filled_routes @filled_routes end |