Module: InchCI::Action::ClassMethods

Defined in:
lib/inch_ci/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exposure_mapObject

Returns the value of attribute exposure_map


14
15
16
# File 'lib/inch_ci/action.rb', line 14

def exposure_map
  @exposure_map
end

Instance Method Details

#exposes(*names) ⇒ Object


16
17
18
19
# File 'lib/inch_ci/action.rb', line 16

def exposes(*names)
  exposures.concat names
  attr_reader *names
end

#exposuresObject


21
22
23
24
# File 'lib/inch_ci/action.rb', line 21

def exposures
  self.exposure_map ||= {}
  self.exposure_map[self.to_s] ||= []
end