Class: Eventual::Time12

Inherits:
Time
  • Object
show all
Defined in:
lib/eventual/syntax_nodes.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Time

#minute, #to_i, #value

Instance Method Details

#hourObject



227
228
229
# File 'lib/eventual/syntax_nodes.rb', line 227

def hour
  pm? ? super + 12 : super
end

#pm?Boolean

Returns:

  • (Boolean)


223
224
225
# File 'lib/eventual/syntax_nodes.rb', line 223

def pm?
  @pm ||= true if period.text_value.include? 'pm'
end