Sha256: 32e47e423a39347276be899624e78c1dab3549d115c74b208b06bdd1774df53f

Contents?: true

Size: 198 Bytes

Versions: 8

Compression:

Stored size: 198 Bytes

Contents

module RailsAttrEnum
  ## Represent an attribute
  class Attr
    attr_reader :name, :enum_name

    def initialize(name)
      @name = name.to_s
      @enum_name = @name.camelize
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_attr_enum-0.2.0 lib/rails_attr_enum/attr.rb
rails_attr_enum-0.1.1 lib/rails_attr_enum/attr.rb
rails_attr_enum-0.1.0 lib/rails_attr_enum/attr.rb
rails_attr_enum-0.0.6 lib/rails_attr_enum/attr.rb
rails_attr_enum-0.0.5 lib/rails_attr_enum/attr.rb
rails_attr_enum-0.0.4 lib/rails_attr_enum/attr.rb
rails_attr_enum-0.0.3 lib/rails_attr_enum/attr.rb
rails_attr_enum-0.0.2 lib/rails_attr_enum/attr.rb