Sha256: df736d1ef659a63b4e4aacd5a748a3e9ec776d57e2b592fe0a9b865b3fa6c697

Contents?: true

Size: 552 Bytes

Versions: 15

Compression:

Stored size: 552 Bytes

Contents

module FilteredColumn
  module Macros
    class Base
      class << self
        def macro_name
          set_name self.name.demodulize.sub(/Macro$/, '')
        end
        
        def set_name(name)
          class << self; attr_reader :macro_name ; end
          @macro_name = name
        end
        
        def macro_key
          set_key self.name.demodulize.underscore.to_sym
        end
        
        def set_key(key)
          class << self; attr_reader :macro_key ; end
          @macro_key = key
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.3.1 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.3.0 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.2.4 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.2.3 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.2.2 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.2.1 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.2.0 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.1.4 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.1.3 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.1.2 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.1.1 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.1.0 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva_cms-0.0.1 vendor/gems/filtered_column/lib/filtered_column/macros/base.rb
adva-0.0.1 adva_cms/vendor/gems/filtered_column/lib/filtered_column/macros/base.rb