class EasySwig::Features
Public Class Methods
create_instance(lang)
click to toggle source
# File lib/features.rb, line 5 def Features.create_instance(lang) ret = case lang when 'java' EasySwig::Java::JavaFeatures.new when 'csharp' EasySwig::Csharp::CsharpFeatures.new else EasySwig::Csharp::CsharpFeatures.new end ret end
Public Instance Methods
empty?()
click to toggle source
# File lib/features.rb, line 17 def empty? false end
infer_native_name(node)
click to toggle source
# File lib/features.rb, line 29 def infer_native_name(node) node.basename ||= node.target_name.gsub(".", "::").gsub(/_([a-z])/i) { |match| $1.upcase } end
infer_target_name(node)
click to toggle source
# File lib/features.rb, line 35 def infer_target_name(node) node.target_name ||= node.basename.gsub("::", ".") end
to_s()
click to toggle source
# File lib/features.rb, line 21 def to_s "" end
to_str()
click to toggle source
# File lib/features.rb, line 25 def to_str to_s end