This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| module Distribution::Transmission::Hooks::Hookable | |
| HookError = Class.new(StandardError) | |
| UnexistentHookError = Class.new(HookError) | |
| class << self | |
| def included(base_class) | |
| base_class.extend ClassMethods | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| module Distribution::Transmission::Hooks::Hookable | |
| HookError = Class.new(StandardError) | |
| UnexistentHookError = Class.new(HookError) | |
| class << self | |
| def included(base_class) | |
| base_class.extend ClassMethods | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| module Distribution::Transmission::Hooks::Hookable | |
| HookError = Class.new(StandardError) | |
| UnexistentHookError = Class.new(HookError) | |
| class << self | |
| def included(base_class) | |
| base_class.extend ClassMethods | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { "keys": ["super+§"], "command": "copy_path" }, | |
| { "keys": ["super+option+§"], "command": "reveal_in_side_bar" } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| # @see https://github.com/rails/rails/blob/4-2-stable/activerecord/lib/active_record/store.rb | |
| module ActiveRecord::Store::ClassMethods | |
| def multi_store_accessor(store_attributes, *keys, store_host: nil) | |
| store_host = store_attributes.first unless store_host | |
| keys = keys.flatten | |
| _store_accessors_module.module_eval do | |
| keys.each do |key| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # rubocop:disable all | |
| class Module | |
| # TODO: (@exclusive) refactor and make PR to Ruby on Rails (ActiveSupport) | |
| # NOTE: rails => /v4.2.10/activesupport/lib/active_support/core_ext/module/delegation.rb | |
| module FixNumberNamedMethodsDelegation | |
| # NOTE: rails => /v4.2.10/activesupport/lib/active_support/core_ext/module/delegation.rb | |
| def delegate(*methods) | |
| options = methods.pop | |
| unless options.is_a?(Hash) && to = options[:to] |
OlderNewer