summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.5.2/lib/rouge/demos/cfscript
blob: b91d82d676a209e4d15c69dea085ef3ee41f3e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
component accessors="true" {

  property type="string" name="firstName" default="";
  property string username;

  function init(){
    return this;
  }

  public any function submitOrder( required product, coupon="", boolean results=true ){

    var foo = function( required string baz, x=true, y=false ){
      return "bar!";
    };

    return foo;
  }
}