Sha256: 29a37d5487e9d524e4adad8fc006fbfb7c32643b4303254048bb6ba1ad102397

Contents?: true

Size: 372 Bytes

Versions: 9

Compression:

Stored size: 372 Bytes

Contents

module Rasti
  module DB
    module NQL
      module Nodes
        module Constants
          class Time < Treetop::Runtime::SyntaxNode

            def value
              time.to_s
            end

            private

            def time
              @time ||= Timing::TimeInZone.parse text_value
            end

          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rasti-db-2.2.0 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-2.1.0 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-2.0.1 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-2.0.0 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-1.5.0 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-1.4.0 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-1.3.1 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-1.3.0 lib/rasti/db/nql/nodes/constants/time.rb
rasti-db-1.2.0 lib/rasti/db/nql/nodes/constants/time.rb