Skip to content

Commit

Permalink
resolves #81 add missing methods on ostruct for Rubinius
Browse files Browse the repository at this point in the history
- tested with Rubinius 2.5.2
  • Loading branch information
mojavelinux committed Jun 16, 2015
1 parent 433bdc6 commit abbce55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/asciidoctor-pdf/core_ext.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require_relative 'core_ext/array'
require_relative 'core_ext/numeric'
#require_relative 'core_ext/ostruct'
if RUBY_ENGINE == 'rbx'
require_relative 'core_ext/ostruct'
end
2 changes: 1 addition & 1 deletion lib/asciidoctor-pdf/core_ext/ostruct.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ def [] key
def []= key, val
send %(#{key}=), val
end unless respond_to? :[]=
end if RUBY_VERSION < '2.0.0'
end

0 comments on commit abbce55

Please sign in to comment.