lib/usher/route/variable.rb in joshbuddy-usher-0.4.1 vs lib/usher/route/variable.rb in joshbuddy-usher-0.4.2

- old
+ new

@@ -1,16 +1,17 @@ class Usher class Route class Variable attr_reader :type, :name, :validator, :transformer, :regex_matcher - attr_accessor :look_ahead + attr_accessor :look_ahead, :globs_capture_separators - def initialize(type, name, validator = nil, transformer = nil, regex_matcher = nil) + def initialize(type, name, validator = nil, transformer = nil, regex_matcher = nil, globs_capture_separators = false) @type = type @name = :"#{name}" @validator = validator @transformer = transformer @regex_matcher = regex_matcher + @globs_capture_separators = globs_capture_separators end def to_s "#{type}#{name}" end \ No newline at end of file