class Rox::Core::CustomProperty
Attributes
name[RW]
type[RW]
Public Class Methods
new(name, type, value = nil, &block)
click to toggle source
# File lib/rox/core/properties/custom_property.rb, line 6 def initialize(name, type, value = nil, &block) @name = name @type = type @value = value @block = block end
Public Instance Methods
value(context)
click to toggle source
# File lib/rox/core/properties/custom_property.rb, line 13 def value(context) @block.nil? ? @value : @block.call(context) end