Skip to content

Instantly share code, notes, and snippets.

View urfolomeus's full-sized avatar

Alan Gardner urfolomeus

View GitHub Profile
// inherited - bad
public MyString extends String {
public MyString () {
super();
}
public String capitalize(String string) {
String capString = string.subString(0,1);
capString = first.toUpperCase();
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