class Nydp::Builtin::RubyWrap::WrapperBuilder

Public Class Methods

new(default_helpers) click to toggle source
# File lib/nydp/builtin/ruby_wrap.rb, line 59
def initialize default_helpers
  @default_helpers = default_helpers.to_s.strip != "" ? ", #{default_helpers}" : ""
end

Public Instance Methods

build(name, args, code, helpers="") click to toggle source
# File lib/nydp/builtin/ruby_wrap.rb, line 63
def build name, args, code, helpers=""
  extra_helpers = helpers.to_s.strip != "" ? ", #{helpers}" : ""
  Nydp::Builtin::RubyWrap.builtins[name.to_sym] = Coder.new(name.to_sym, args, code, "#{@default_helpers}#{extra_helpers}")
end