oml4r 2.10.3 → 2.10.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/oml4r/version.rb +1 -1
  2. data/lib/oml4r.rb +6 -0
  3. metadata +2 -2
data/lib/oml4r/version.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # ------------------
6
6
 
7
7
  module OML4R
8
- VERSION = "2.10.3"
8
+ VERSION = "2.10.4"
9
9
  VERSION_STRING = "OML4R Client V#{VERSION}"
10
10
  COPYRIGHT = "Copyright 2009-2014, NICTA"
11
11
  end
data/lib/oml4r.rb CHANGED
@@ -67,6 +67,12 @@ module OML4R
67
67
  @@defs.each(&block)
68
68
  end
69
69
 
70
+ def self.has_mp?(name)
71
+ exist = false
72
+ @@defs.each { |m| exist = true if m[0].__def__[:name][:name]==name.to_sym }
73
+ exist
74
+ end
75
+
70
76
  # Set the useOML flag. If set to false, make 'inject' a NOOP
71
77
  def self.__useOML__()
72
78
  @@useOML = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oml4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.3
4
+ version: 2.10.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-16 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! '["Simple OML client library and applications for Ruby"]'
15
15
  email: