Class: Ynl::Models::Flags
- Inherits:
-
Object
- Object
- Ynl::Models::Flags
- Defined in:
- ynl/lib/ynl/models.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, doc:) ⇒ Flags
constructor
A new instance of Flags.
- #resolve(f) ⇒ Object
Constructor Details
#initialize(name:, doc:) ⇒ Flags
Returns a new instance of Flags.
78 79 80 81 82 |
# File 'ynl/lib/ynl/models.rb', line 78 def initialize(name:, doc:) @name = name @entries = [] @doc = doc end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
76 77 78 |
# File 'ynl/lib/ynl/models.rb', line 76 def doc @doc end |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
76 77 78 |
# File 'ynl/lib/ynl/models.rb', line 76 def entries @entries end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
76 77 78 |
# File 'ynl/lib/ynl/models.rb', line 76 def name @name end |
Instance Method Details
#resolve(f) ⇒ Object
84 85 86 |
# File 'ynl/lib/ynl/models.rb', line 84 def resolve(f) self end |