Class: Gurke::Configuration::Inclusion Private
- Inherits:
-
Object
- Object
- Gurke::Configuration::Inclusion
- Defined in:
- lib/gurke/configuration.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #mod ⇒ Object readonly private
- #opts ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(mod, opts) ⇒ Inclusion
constructor
private
A new instance of Inclusion.
- #match?(tags) ⇒ Boolean private
- #tags ⇒ Object private
Constructor Details
#initialize(mod, opts) ⇒ Inclusion
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Inclusion.
84 85 86 87 |
# File 'lib/gurke/configuration.rb', line 84 def initialize(mod, opts) @mod = mod @opts = opts end |
Instance Attribute Details
#mod ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
82 83 84 |
# File 'lib/gurke/configuration.rb', line 82 def mod @mod end |
#opts ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
82 83 84 |
# File 'lib/gurke/configuration.rb', line 82 def opts @opts end |
Instance Method Details
#match?(tags) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
97 98 99 100 101 102 103 104 105 |
# File 'lib/gurke/configuration.rb', line 97 def match?() return true if self..empty? self..each do |tag| return true if .include?(tag.to_s) end false end |
#tags ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
89 90 91 92 93 94 95 |
# File 'lib/gurke/configuration.rb', line 89 def @tags ||= begin = opts.fetch(:tags, []) = [] unless .is_a?(Array) end end |