class PatternMatcher::Match

Attributes

name[RW]
regex_match[RW]

Public Class Methods

new(hash) click to toggle source
# File lib/pattern_matcher/match.rb, line 6
def initialize(hash)
  if hash.is_a?(Hash)
            extract_attributes_from_hash hash
  end
end

Private Instance Methods

extract_attributes_from_hash(hash) click to toggle source
# File lib/pattern_matcher/match.rb, line 14
def extract_attributes_from_hash(hash)
    @name = hash[:name]
    @regex_match = hash[:regex_match]
end