Class: Jugynox
- Inherits:
-
Object
- Object
- Jugynox
- Defined in:
- lib/jugynox.rb
Instance Attribute Summary collapse
-
#match ⇒ Object
Returns the value of attribute match.
-
#replacement ⇒ Object
Returns the value of attribute replacement.
Instance Method Summary collapse
-
#initialize(match, replacement) ⇒ Jugynox
constructor
A new instance of Jugynox.
Constructor Details
#initialize(match, replacement) ⇒ Jugynox
Returns a new instance of Jugynox.
5 6 7 8 9 10 |
# File 'lib/jugynox.rb', line 5 def initialize(match, replacement) raise ArgumentError.new("Match cannot be blank") unless match raise ArgumentError.new("Replacement cannot be blank") unless replacement @match = match @replacement = replacement end |
Instance Attribute Details
#match ⇒ Object
Returns the value of attribute match.
3 4 5 |
# File 'lib/jugynox.rb', line 3 def match @match end |
#replacement ⇒ Object
Returns the value of attribute replacement.
3 4 5 |
# File 'lib/jugynox.rb', line 3 def replacement @replacement end |