class ColonelKurtz::Block::Type
Attributes
type[R]
Public Class Methods
new(type)
click to toggle source
# File lib/colonel_kurtz/block/type.rb, line 11 def initialize(type) @type = type end
Public Instance Methods
formatted_type()
click to toggle source
# File lib/colonel_kurtz/block/type.rb, line 15 def formatted_type type.gsub("-", "_").downcase end
to_sym()
click to toggle source
# File lib/colonel_kurtz/block/type.rb, line 19 def to_sym formatted_type.to_sym end