This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// inherited - bad | |
public MyString extends String { | |
public MyString () { | |
super(); | |
} | |
public String capitalize(String string) { | |
String capString = string.subString(0,1); | |
capString = first.toUpperCase(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Configuration | |
attr_accessor :tail_logs, :max_connections, :admin_password, :app_server | |
def app_server | |
@app_server ||= AppServerConfiguration.new | |
if block_given? | |
yield(@app_server) | |
end | |
@app_server | |
end |
NewerOlder