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.
4 5 6 |
# File 'lib/jugynox.rb', line 4 def initialize(match, replacement) raise ArgumentError.new("Match cannot be blank") unless match end |
Instance Attribute Details
#match ⇒ Object
Returns the value of attribute match.
2 3 4 |
# File 'lib/jugynox.rb', line 2 def match @match end |
#replacement ⇒ Object
Returns the value of attribute replacement.
2 3 4 |
# File 'lib/jugynox.rb', line 2 def replacement @replacement end |