Movatterモバイル変換


[0]ホーム

URL:


Libraries »piotrmurach/github(master) »Index (P) »Github »API »Config »Property

Class: Github::API::Config::Property

Inherits:
Object
  • Object
  • Github::API::Config::Property
show all
Defined in:
lib/github_api/api/config/property.rb

Overview

Property objects provide an interface for configuration options

Instance Attribute Summarycollapse

Instance Method Summarycollapse

Constructor Details

#initialize(name, options) ⇒Property

141516171819
# File 'lib/github_api/api/config/property.rb', line 14definitialize(name,options)@name=name@default=options.fetch(:default,nil)@required=options.fetch(:required,nil)@options=optionsend

Instance Attribute Details

#defaultObject(readonly)

Returns the value of attribute default.

111213
# File 'lib/github_api/api/config/property.rb', line 11defdefault@defaultend

#nameObject(readonly)

Returns the value of attribute name.

101112
# File 'lib/github_api/api/config/property.rb', line 10defname@nameend

#requiredObject(readonly)

Returns the value of attribute required.

121314
# File 'lib/github_api/api/config/property.rb', line 12defrequired@requiredend

Instance Method Details

#define_accessor_methods(properties) ⇒Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

22232425
# File 'lib/github_api/api/config/property.rb', line 22defdefine_accessor_methods(properties)properties.define_reader_method(self,self.name,:public)properties.define_writer_method(self,"#{self.name}=",:public)end
Generated on Sun Nov 30 19:33:35 2025 byyard 0.9.37 (ruby-3.4.3).

[8]ページ先頭

©2009-2025 Movatter.jp