class Calyx::Mapping
Public Class Methods
new()
click to toggle source
# File lib/calyx/mapping.rb, line 3 def initialize @key = "key" @value = "value" end
Public Instance Methods
call(input)
click to toggle source
# File lib/calyx/mapping.rb, line 8 def call(input) if @key == input then @value else "" end end