Class: Mamiya::Util::LabelMatcher::Simple

Inherits:
Object
  • Object
show all
Includes:
Mamiya::Util::LabelMatcher
Defined in:
lib/mamiya/util/label_matcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mamiya::Util::LabelMatcher

#match?, parse_string_expr

Constructor Details

#initialize(*labels) ⇒ Simple



32
33
34
# File 'lib/mamiya/util/label_matcher.rb', line 32

def initialize(*labels)
  @labels = labels.flatten
end

Instance Attribute Details

#labelsObject (readonly)

Returns the value of attribute labels.



36
37
38
# File 'lib/mamiya/util/label_matcher.rb', line 36

def labels
  @labels
end