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)


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

#matchObject

Returns the value of attribute match.



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

def match
  @match
end

#replacementObject

Returns the value of attribute replacement.



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

def replacement
  @replacement
end