Class: Mamiya::Util::LabelMatcher::Simple
- Inherits:
-
Object
- Object
- Mamiya::Util::LabelMatcher::Simple
- Includes:
- Mamiya::Util::LabelMatcher
- Defined in:
- lib/mamiya/util/label_matcher.rb
Instance Attribute Summary collapse
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
Instance Method Summary collapse
-
#initialize(*labels) ⇒ Simple
constructor
A new instance of Simple.
Methods included from Mamiya::Util::LabelMatcher
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
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
36 37 38 |
# File 'lib/mamiya/util/label_matcher.rb', line 36 def labels @labels end |