Module: Sniff::Emitter
- Defined in:
- lib/sniff/emitter.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #parent_class ⇒ Object
- #pattern? ⇒ Boolean
- #retired? ⇒ Boolean
- #visible_effective_characteristics ⇒ Object
Class Method Details
.included(target) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/sniff/emitter.rb', line 12 def self.included(target) target.instance_eval do extend Leap::Subject extend ClassMethods extend SummaryJudgement extend FastTimestamp include Characterizable include CommonName end end |
Instance Method Details
#parent_class ⇒ Object
23 24 25 |
# File 'lib/sniff/emitter.rb', line 23 def parent_class Emitter end |
#pattern? ⇒ Boolean
35 36 37 |
# File 'lib/sniff/emitter.rb', line 35 def pattern? self.class.pattern? end |
#retired? ⇒ Boolean
31 32 33 |
# File 'lib/sniff/emitter.rb', line 31 def retired? has_attribute?(:retirement) and retirement end |
#visible_effective_characteristics ⇒ Object
27 28 29 |
# File 'lib/sniff/emitter.rb', line 27 def visible_effective_characteristics characteristics.effective.reject { |_, c| c.hidden? } end |