Skip to content

Instantly share code, notes, and snippets.

@emir
Created March 15, 2018 10:46
Show Gist options
  • Select an option

  • Save emir/c9a9343b0f72e6c7188b22e4814ae5ca to your computer and use it in GitHub Desktop.

Select an option

Save emir/c9a9343b0f72e6c7188b22e4814ae5ca to your computer and use it in GitHub Desktop.
go to hell
<cfcomponent>
<cfset this.hello = "Hello" />
<cfset this.world = "world" />
<cffunction name="sayHello">
<cfreturn this.hello & ", " & this.world & "!" />
</cffunction>
<cffunction name="setHello">
<cfargument name="newHello" type="string" required="true" />
<cfset this.hello = arguments.newHello />
<cfreturn true />
</cffunction>
<cffunction name="setWorld">
<cfargument name="newWorld" type="string" required="true" />
<cfset this.world = arguments.newWorld />
<cfreturn true />
</cffunction>
<cffunction name="getHello">
<cfreturn this.hello />
</cffunction>
<cffunction name="getWorld">
<cfreturn this.world />
</cffunction>
</cfcomponent>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment