Module: ALib::Util::Exporter
- Included in:
- ALib::Util, Casting
- Defined in:
- lib/alib-0.5.1/util.rb
Overview
–{{{
Class Method Summary collapse
Instance Method Summary collapse
-
#export(*syms) ⇒ Object
–{{{.
Class Method Details
.included(other) ⇒ Object
–}}}
20 21 22 |
# File 'lib/alib-0.5.1/util.rb', line 20 def self.included other other.extend self end |
Instance Method Details
#export(*syms) ⇒ Object
–{{{
11 12 13 14 15 16 17 18 19 |
# File 'lib/alib-0.5.1/util.rb', line 11 def export(*syms) #--{{{ syms.each do |sym| sym = "#{ sym }".intern module_function sym public sym end #--}}} end |