module Paragraphs
Public Class Methods
new(*args, &block)
click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 191 def initialize(*args, &block) original_initialize(*args, &block) self.use(DropboxApiCheckFaradayMiddleware) end
report_paragraph_infraction(id)
click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 155 def report_paragraph_infraction(id) fail "§#{id} was infringed" end
Public Instance Methods
§(*paragraph_constants) { || ... }
click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 177 def §(*paragraph_constants, &bloc) # if(paragraph_constants.include?(TEMPFILES_MUST_BE_SUPPORTED)) # t = Tempfile.new # t.write("test") # t.rewind # unless t.read == "test" # Paragraphs.report_paragraph_infraction(TEMPFILES_MUST_BE_SUPPORTED) # end # end if(paragraph_constants.include?(ASSERT_NO_DROPBOX_API_ERRORS)) Faraday::Connection.class_eval do alias_method :original_initialize, :initialize def initialize(*args, &block) original_initialize(*args, &block) self.use(DropboxApiCheckFaradayMiddleware) end end end if(paragraph_constants.include?(EXECUTE_IN_SUCCESSION)) ExecutionInSuccession.new(&bloc).start else yield if block_given? end end
§∆(*paragraph_constants) { || ... }
click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 213 def §∆(*paragraph_constants, &bloc) # law that requests a delta that must be implemented, idieallly accompanied by a law that *should be implemented* (positively formulatedd, non violent communication) and a law that was broken # this is thought as laws that expect somemthing in the future, i.e. somethingi s broken and should be fixed by the delta yield if block_given? end
§∆⚕(*paragraph_constants) { || ... }
click to toggle source
explanation (⚕) for change (∆) law (§)
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 220 def §∆⚕(*paragraph_constants, &bloc) # this is thought as laws that expect somemthing in the future, i.e. somethingi s broken and should be fixed by the delta yield end
§⚕(*paragraph_constants) { || ... }
click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 208 def §⚕(*paragraph_constants, &bloc) yield # this is thought as the implementation of a law, i.e. the remedy, the medicine for the law end
√?(*args) { || ... }
click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 229 def √?(*args, &block) # root of error? yield end
❌(*args) { || ... }
click to toggle source
# File server/redux-os/config/e?ii/laws_of_code/paragraphs/main.rb, line 225 def ❌(*args, &bloc) # first occurencee of error yield end