Sha256: 814a7408deaa20657c50f2fda2649d6ddbf0021a3bd99826cfcead02ac21eda1

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

module Selekt
  module SQL
    module TableReference
      def variable_name
        if elements.last.empty?
          elements.first.text_value
        else
          elements.last.text_value
        end
      end
    end

    module Source
      def variable_name
        if elements.last.empty?
          elements.first.variable_name
        else
          elements.last.variable_name
        end
      end
    end

    module Alias
      def variable_name
        elements.last.text_value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
selekt-0.0.1 lib/selekt/sql.rb