Module: Envandle::AsContext

Included in:
Elements::Gemfile, Elements::Gemspec, Elements::GroupBlock
Defined in:
lib/envandle/as_context.rb

Class Method Summary collapse

Class Method Details

.extended(mod) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/envandle/as_context.rb', line 3

def self.extended(mod)
  mod.class_eval do
    def gemfile
      @context.gemfile
    end

    def groups_or_default
      a = groups
      a.empty? ? [nil] : a
    end
  end
end