Sha256: b10f327b058e158cc11694e23110b2567758428d0cd370967a263353707a1a67

Contents?: true

Size: 326 Bytes

Versions: 145

Compression:

Stored size: 326 Bytes

Contents

module Eco
  module API
    module Common
      module ClassMetaBasics

        # Helps to define methods and keep track on them
        def define(name, &block)
          name = name.to_sym
          @helpers[name] = block
          define_method(name.to_sym, &block)
        end

      end
    end
  end
end

Version data entries

145 entries across 145 versions & 1 rubygems

Version Path
eco-helpers-3.0.4 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.3 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.2 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.1 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.0 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.25 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.24 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.23 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.22 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.21 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.20 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.19 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.18 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.17 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.16 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.15 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.14 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.13 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.12 lib/eco/api/common/class_meta_basics.rb
eco-helpers-2.7.4 lib/eco/api/common/class_meta_basics.rb