Sha256: 6b9e81e5b2318cfbf9c9492a664b8fbcddd0bd83e264b4330b081df324d504df
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
# encoding: utf-8 require 'markun_dsl_model' module Markun # =Markun::Dsl class Dsl attr_accessor :markun # String Define [:have_menu].each do |f| define_method f do |value| eval "@markun.#{f.to_s} = '#{value}'", binding end end # Array/Hash Define [].each do |f| define_method f do |value| eval "@markun.#{f.to_s} = #{value}", binding end end def initialize @markun = Markun::DslModel.new @markun.have_menu = 'false' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markun-0.0.1 | lib/markun_dsl.rb |