Exception: Eventual::WdayMatchError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/eventual/syntax_nodes.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ WdayMatchError

Returns a new instance of WdayMatchError.



11
12
13
# File 'lib/eventual/syntax_nodes.rb', line 11

def initialize value
  @value
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/eventual/syntax_nodes.rb', line 15

def to_s
  "El #{@value.day} de #{MonthNames[@value.month]} del #{@value.year} cae en #{Weekdays[@value.wday]}"
end