Class: Decouplio::OctoHashCase

Inherits:
Object
  • Object
show all
Defined in:
lib/decouplio/octo_hash_case.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.hash_caseObject (readonly)

Returns the value of attribute hash_case.



8
9
10
# File 'lib/decouplio/octo_hash_case.rb', line 8

def hash_case
  @hash_case
end

Class Method Details

.inherited(subclass) ⇒ Object



10
11
12
13
# File 'lib/decouplio/octo_hash_case.rb', line 10

def inherited(subclass)
  subclass.init_hash_case
  super(subclass)
end

.init_hash_caseObject



15
16
17
# File 'lib/decouplio/octo_hash_case.rb', line 15

def init_hash_case
  @hash_case = {}
end

.on(strategy_flow, **options) ⇒ Object



19
20
21
22
# File 'lib/decouplio/octo_hash_case.rb', line 19

def on(strategy_flow, **options)
  validate_options(options)
  @hash_case[strategy_flow] = options
end