Class: Ynl::Models::Flags

Inherits:
Object
  • Object
show all
Defined in:
ynl/lib/ynl/models.rb

Defined Under Namespace

Classes: Entry

Instance Attribute Summary collapse

Instance Method Summary collapse

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