class CfScript::Attribute

Attributes

name[R]
value[R]

Public Class Methods

new(name, value) click to toggle source
# File lib/cf_script/object/attribute.rb, line 4
def initialize(name, value)
  @name  = name
  @value = value
end

Public Instance Methods

inspect()
Alias for: to_s
to_a() click to toggle source
# File lib/cf_script/object/attribute.rb, line 9
def to_a
  value ? value.split(/,\s*/) : []
end
to_s() click to toggle source
# File lib/cf_script/object/attribute.rb, line 13
def to_s
  "#{name}: #{value}"
end
Also aliased as: inspect