Class: Nickel::DateConstruct

Inherits:
Construct show all
Defined in:
lib/nickel/construct.rb

Instance Attribute Summary collapse

Attributes inherited from Construct

#comp_end, #comp_start, #found_in

Instance Method Summary collapse

Methods inherited from Construct

#initialize

Constructor Details

This class inherits a constructor from Nickel::Construct

Instance Attribute Details

#dateObject

Returns the value of attribute date.



13
14
15
# File 'lib/nickel/construct.rb', line 13

def date
  @date
end

Instance Method Details

#interpretObject



14
15
16
# File 'lib/nickel/construct.rb', line 14

def interpret
  { date: date }
end