Class: RFunk::Match::Pattern
- Inherits:
-
Object
- Object
- RFunk::Match::Pattern
- Defined in:
- lib/rfunk/match/pattern.rb
Instance Attribute Summary collapse
-
#cases ⇒ Object
readonly
Returns the value of attribute cases.
Instance Method Summary collapse
-
#initialize ⇒ Pattern
constructor
A new instance of Pattern.
- #with(type, func) ⇒ Object
Constructor Details
#initialize ⇒ Pattern
Returns a new instance of Pattern.
6 7 8 |
# File 'lib/rfunk/match/pattern.rb', line 6 def initialize @cases = [] end |
Instance Attribute Details
#cases ⇒ Object (readonly)
Returns the value of attribute cases.
4 5 6 |
# File 'lib/rfunk/match/pattern.rb', line 4 def cases @cases end |