Class: Jugynox

Inherits:
Object
  • Object
show all
Defined in:
lib/jugynox.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match, replacement) ⇒ Jugynox

Returns a new instance of Jugynox.

Raises:

  • (ArgumentError)


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

#matchObject

Returns the value of attribute match.



3
4
5
# File 'lib/jugynox.rb', line 3

def match
  @match
end

#replacementObject

Returns the value of attribute replacement.



3
4
5
# File 'lib/jugynox.rb', line 3

def replacement
  @replacement
end