Class: Goodcheck::Matcher
- Inherits:
-
Object
- Object
- Goodcheck::Matcher
- Defined in:
- lib/goodcheck/matcher.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(path:, src:, rule:) ⇒ Matcher
constructor
A new instance of Matcher.
Constructor Details
#initialize(path:, src:, rule:) ⇒ Matcher
Returns a new instance of Matcher.
7 8 9 10 11 |
# File 'lib/goodcheck/matcher.rb', line 7 def initialize(path:, src:, rule:) @path = path @src = src @rule = rule end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/goodcheck/matcher.rb', line 3 def path @path end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
5 6 7 |
# File 'lib/goodcheck/matcher.rb', line 5 def rule @rule end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
4 5 6 |
# File 'lib/goodcheck/matcher.rb', line 4 def src @src end |
Instance Method Details
#each ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/goodcheck/matcher.rb', line 13 def each if block_given? else enum_for :each end end |