Class: Graham::Core

Inherits:
Mallow::Core
  • Object
show all
Defined in:
lib/graham.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCore

Returns a new instance of Core.



49
50
51
52
# File 'lib/graham.rb', line 49

def initialize
  @cases = []
  super
end

Instance Attribute Details

#casesObject (readonly)

Returns the value of attribute cases.



48
49
50
# File 'lib/graham.rb', line 48

def cases
  @cases
end

Instance Method Details

#_fluff1(e) ⇒ Object



54
55
56
57
58
59
60
61
62
63
# File 'lib/graham.rb', line 54

def _fluff1(e)
  [e] << begin
    super e
    true
  rescue Mallow::MatchException
    false
  rescue => err
    err
  end
end

#testObject



65
# File 'lib/graham.rb', line 65

def test; Hash[_fluff @cases] end