Class: Eventual::Time12
- Defined in:
- lib/eventual/syntax_nodes.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from Time
Instance Method Details
#hour ⇒ Object
227 228 229 |
# File 'lib/eventual/syntax_nodes.rb', line 227 def hour pm? ? super + 12 : super end |
#pm? ⇒ Boolean
223 224 225 |
# File 'lib/eventual/syntax_nodes.rb', line 223 def pm? @pm ||= true if period.text_value.include? 'pm' end |