class CfnDsl::Fn
- Handles all of the
Fn
-
objects
Public Class Methods
Source
# File lib/cfndsl/jsonable.rb, line 184 def initialize(function, argument, refs = [], condition_refs = []) @function = function @argument = argument @_refs = refs @_condition_refs = condition_refs end
Public Instance Methods
Source
# File lib/cfndsl/jsonable.rb, line 191 def as_json(_options = {}) hash = {} hash["Fn::#{@function}"] = @argument hash end
Source
# File lib/cfndsl/jsonable.rb, line 205 def condition_refs @_condition_refs end
Source
# File lib/cfndsl/jsonable.rb, line 209 def ref_children [@argument].flatten end
Source
# File lib/cfndsl/jsonable.rb, line 197 def to_json(*args) as_json.to_json(*args) end