class CfnDsl::Fn
- Handles all of the
Fn
-
objects
Public Class Methods
new(function, argument, refs = [], condition_refs = [])
click to toggle 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
all_refs()
click to toggle source
# File lib/cfndsl/jsonable.rb, line 201 def all_refs @_refs end
as_json(_options = {})
click to toggle source
# File lib/cfndsl/jsonable.rb, line 191 def as_json(_options = {}) hash = {} hash["Fn::#{@function}"] = @argument hash end
condition_refs()
click to toggle source
# File lib/cfndsl/jsonable.rb, line 205 def condition_refs @_condition_refs end
ref_children()
click to toggle source
# File lib/cfndsl/jsonable.rb, line 209 def ref_children [@argument].flatten end
to_json(*args)
click to toggle source
# File lib/cfndsl/jsonable.rb, line 197 def to_json(*args) as_json.to_json(*args) end