Class: Nickel::TimeConstruct

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

#timeObject

Returns the value of attribute time.



21
22
23
# File 'lib/nickel/construct.rb', line 21

def time
  @time
end

Instance Method Details

#interpretObject



22
23
24
# File 'lib/nickel/construct.rb', line 22

def interpret
  { time: time }
end