Sha256: 037b478e03b0f0b53acf43ac672865671bf46d788396ecc5b8d0a96b52042c4a

Contents?: true

Size: 279 Bytes

Versions: 7

Compression:

Stored size: 279 Bytes

Contents

if defined?(::H) && ::H != Hexp::Node
  $stderr.puts "WARN: H is already defined, Hexp H[] shorthand not available"
else
  module H
    def self.[](*args)
      if args.first.is_a? Symbol
        Hexp::Node[*args]
      else
        Hexp::List[*args]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hexp-0.4.6 lib/hexp/h.rb
hexp-0.4.5 lib/hexp/h.rb
hexp-0.4.4 lib/hexp/h.rb
hexp-0.4.3 lib/hexp/h.rb
hexp-0.4.2 lib/hexp/h.rb
hexp-0.4.1 lib/hexp/h.rb
hexp-0.4.0.beta1 lib/hexp/h.rb