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


24
25
26
# File 'lib/nickel/construct.rb', line 24

def time
  @time
end

Instance Method Details

#interpretObject


25
26
27
# File 'lib/nickel/construct.rb', line 25

def interpret
  { time: time }
end