Class: Mailmate::AST::RelativeDateNode Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/mailmate/ast.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

n: integer; unit: :day, :week, :month, :year

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nObject

Returns the value of attribute n

Returns:

  • (Object)

    the current value of n



27
28
29
# File 'lib/mailmate/ast.rb', line 27

def n
  @n
end

#unitObject

Returns the value of attribute unit

Returns:

  • (Object)

    the current value of unit



27
28
29
# File 'lib/mailmate/ast.rb', line 27

def unit
  @unit
end

Instance Method Details

#inspectObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



27
# File 'lib/mailmate/ast.rb', line 27

def inspect; "Rel(#{n} #{unit}s ago)"; end