Class: Graham::Core
- Inherits:
-
Mallow::Core
- Object
- Mallow::Core
- Graham::Core
- Defined in:
- lib/graham.rb
Instance Attribute Summary collapse
-
#cases ⇒ Object
readonly
Returns the value of attribute cases.
Instance Method Summary collapse
- #_fluff1(e) ⇒ Object
-
#initialize ⇒ Core
constructor
A new instance of Core.
- #test ⇒ Object
Constructor Details
#initialize ⇒ Core
Returns a new instance of Core.
49 50 51 52 |
# File 'lib/graham.rb', line 49 def initialize @cases = [] super end |
Instance Attribute Details
#cases ⇒ Object (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 |
#test ⇒ Object
65 |
# File 'lib/graham.rb', line 65 def test; Hash[_fluff @cases] end |