lib/axiom/relation/base.rb in axiom-0.1.0 vs lib/axiom/relation/base.rb in axiom-0.1.1
- old
+ new
@@ -10,18 +10,18 @@
# The base relation name
#
# @example
# name = base.name
#
- # @return [#to_s]
+ # @return [Symbol]
#
# @api public
attr_reader :name
# Initialize a base relation
#
- # @param [#to_s] name
+ # @param [#to_sym] name
# the relation name
# @param [Header, #to_ary] header
# the relation header
# @param [Enumerable] tuples
# the relation tuples
@@ -29,10 +29,10 @@
# @return [undefined]
#
# @api private
def initialize(name, header, tuples = Empty::ZERO_TUPLE)
super(header, tuples)
- @name = freeze_object(name.to_s)
+ @name = name.to_sym
end
end # class Base
end # class Relation
end # module Axiom