Class Ohcount::Gestalt::Platform
In: lib/gestalt/platform.rb
Parent: Object

Methods

Public Class methods

[Source]

# File lib/gestalt/platform.rb, line 36
                                def children() @children ||= [] end

[Source]

# File lib/gestalt/platform.rb, line 38
                                def descendants() children.inject([]){|d,c| d.push(c, *c.descendants)} end

[Source]

# File lib/gestalt/platform.rb, line 37
                                def inherited(other) children << other and super end

we delegate to the top_level_or trigger

[Source]

# File lib/gestalt/platform.rb, line 26
                        def self.method_missing(method, *args)
                                top_level_or.send(method, *args)
                        end

platform rules are assumed to be, at the top level, OR-ed. In other words, any one rule will trigger that platform. That‘s why we keep a top-level OrRule around.

[Source]

# File lib/gestalt/platform.rb, line 21
                        def self.top_level_or
                                @top_level_or ||= OrRule.new
                        end

[Source]

# File lib/gestalt/platform.rb, line 30
                        def self.triggered?(g)
                                top_level_or.triggered?(g)
                        end

[Validate]