Class: Ynl::Models::Flags
- Inherits:
-
Object
- Object
- Ynl::Models::Flags
- Defined in:
- 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.
68 69 70 71 72 |
# File 'lib/ynl/models.rb', line 68 def initialize(name:, doc:) @name = name @entries = [] @doc = doc end |
Instance Attribute Details
#doc ⇒ Object (readonly)
Returns the value of attribute doc.
66 67 68 |
# File 'lib/ynl/models.rb', line 66 def doc @doc end |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
66 67 68 |
# File 'lib/ynl/models.rb', line 66 def entries @entries end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
66 67 68 |
# File 'lib/ynl/models.rb', line 66 def name @name end |
Instance Method Details
#resolve(f) ⇒ Object
74 75 76 |
# File 'lib/ynl/models.rb', line 74 def resolve(f) self end |