Skip to content

Commit 592a4df

Browse files
authored
Merge pull request #5 from herwinw/warnings_in_travis
Fixed a few warnings
2 parents 0827f75 + 26e39e7 commit 592a4df

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/xmlrpc/datetime.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,47 +24,47 @@ class DateTime
2424
#
2525
# Raises ArgumentError if the given +value+ is out of range, or in the case
2626
# of XMLRPC::DateTime#year= if +value+ is not of type Integer.
27-
def year= (value)
27+
def year=(value)
2828
raise ArgumentError, "date/time out of range" unless value.is_a? Integer
2929
@year = value
3030
end
3131

3232
# Set +value+ as the new date/time component.
3333
#
3434
# Raises an ArgumentError if the given +value+ isn't between 1 and 12.
35-
def month= (value)
35+
def month=(value)
3636
raise ArgumentError, "date/time out of range" unless (1..12).include? value
3737
@month = value
3838
end
3939

4040
# Set +value+ as the new date/time component.
4141
#
4242
# Raises an ArgumentError if the given +value+ isn't between 1 and 31.
43-
def day= (value)
43+
def day=(value)
4444
raise ArgumentError, "date/time out of range" unless (1..31).include? value
4545
@day = value
4646
end
4747

4848
# Set +value+ as the new date/time component.
4949
#
5050
# Raises an ArgumentError if the given +value+ isn't between 0 and 24.
51-
def hour= (value)
51+
def hour=(value)
5252
raise ArgumentError, "date/time out of range" unless (0..24).include? value
5353
@hour = value
5454
end
5555

5656
# Set +value+ as the new date/time component.
5757
#
5858
# Raises an ArgumentError if the given +value+ isn't between 0 and 59.
59-
def min= (value)
59+
def min=(value)
6060
raise ArgumentError, "date/time out of range" unless (0..59).include? value
6161
@min = value
6262
end
6363

6464
# Set +value+ as the new date/time component.
6565
#
6666
# Raises an ArgumentError if the given +value+ isn't between 0 and 59.
67-
def sec= (value)
67+
def sec=(value)
6868
raise ArgumentError, "date/time out of range" unless (0..59).include? value
6969
@sec = value
7070
end

0 commit comments

Comments
 (0)