class Github::API
def set(option, value=(not_set=true), ignore_setter=false, &block)
- Api: - public
Returns:
-
(self)
-
Parameters:
-
ignore_setter
(Boolean
) -- -
value
(Object
) -- -
option
(String
) --
def set(option, value=(not_set=true), ignore_setter=false, &block) raise ArgumentError, 'value not set' if block and !not_set return self if !not_set and value.nil? if not_set set_options option return self end if respond_to?("#{option}=") and not ignore_setter return __send__("#{option}=", value) end define_accessors option, value self end