Module: HornOfPlenty::Parsable
- Included in:
- Models::Board, Models::Card, Models::Issue, Models::Lane
- Defined in:
- lib/horn_of_plenty/models/parsable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#parser ⇒ Object
Returns the value of attribute parser.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#parser ⇒ Object
Returns the value of attribute parser.
28 29 30 |
# File 'lib/horn_of_plenty/models/parsable.rb', line 28 def parser @parser end |
Class Method Details
.included(base) ⇒ Object
40 41 42 |
# File 'lib/horn_of_plenty/models/parsable.rb', line 40 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#initialize(parser: nil, **args) ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/horn_of_plenty/models/parsable.rb', line 30 def initialize(parser: nil, **args) self.parser = parser if defined?(super) && args.empty? super() elsif defined?(super) super(**args) end end |