Module: RubyLokaliseApi::Concerns::Unsupportable

Included in:
Resources::Base
Defined in:
lib/ruby_lokalise_api/concerns/unsupportable.rb

Overview

Allows to undefine certain methods

Instance Method Summary collapse

Instance Method Details

#no_support_for(methods) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/ruby_lokalise_api/concerns/unsupportable.rb', line 7

def no_support_for(methods)
  return unless methods.any?

  methods.each do |method|
    undef_method(method)
  end
end