Class: Mailmate::AST::RelativeDateNode Private
- Inherits:
-
Struct
- Object
- Struct
- Mailmate::AST::RelativeDateNode
- 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
-
#n ⇒ Object
Returns the value of attribute n.
-
#unit ⇒ Object
Returns the value of attribute unit.
Instance Method Summary collapse
- #inspect ⇒ Object private
Instance Attribute Details
#n ⇒ Object
Returns the value of attribute n
27 28 29 |
# File 'lib/mailmate/ast.rb', line 27 def n @n end |
#unit ⇒ Object
Returns the value of attribute unit
27 28 29 |
# File 'lib/mailmate/ast.rb', line 27 def unit @unit end |
Instance Method Details
#inspect ⇒ Object
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 |