Sha256: 536e94d40494aa44d609ac23ff498fa7092d95aabbbca4af8127933f91453001

Contents?: true

Size: 322 Bytes

Versions: 17

Compression:

Stored size: 322 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

17 entries across 17 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.20 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.19 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.18 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.17 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.16 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.15 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.14 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.13 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.12 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.11 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.10 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.9 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.8 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.7 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.6 lib/eco/api/common/class_meta_basics.rb
eco-helpers-3.0.5 lib/eco/api/common/class_meta_basics.rb